Changeset 1520 for trunk/dll/copyf.c


Ignore:
Timestamp:
May 2, 2010, 12:38:50 AM (15 years ago)
Author:
John Small
Message:

Syntatic improvement on changeset 1502.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/copyf.c

    r1502 r1520  
    9797  switch (type) {
    9898  case 0:
    99     sprintf(p, "%08lx.%03lx", mypid, rand() & 4095L);           // 4095 = 0x0FFF
     99    sprintf(p, "%08lx.%03lx", (UINT)mypid, (UINT)rand() & 4095L);               // 4095 = 0x0FFF
    100100    break;
    101101  case 1:
    102     sprintf(p, "%s%04lx.%03lx", "$FM2", mypid, rand() & 4095L); // 4095 = 0x0FFF
     102    sprintf(p, "%s%04lx.%03lx", "$FM2", (UINT)mypid, (UINT)rand() & 4095L);     // 4095 = 0x0FFF
    103103    break;
    104104  case 2:
    105     sprintf(p, "%s.%03x", temproot, (rand() & 4095));           // 4095 = 0x0FFF
     105    sprintf(p, "%s.%03x", temproot, (UINT)(rand() & 4095));                     // 4095 = 0x0FFF
    106106    break;
    107107  default:
Note: See TracChangeset for help on using the changeset viewer.