Ignore:
Timestamp:
Feb 2, 2007, 12:58:06 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Fixed more MSVC compilation warnings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/fuzz.c

    r1732 r1736  
    116116    struct fuzz *fuzz;
    117117    volatile uint8_t *aligned_buf;
    118     int i, j, todo;
     118    int64_t i, j;
     119    int todo;
    119120
    120121#if 0
     
    133134        if(fuzz->cur != (int)i)
    134135        {
    135             uint32_t chunkseed = (i + (int)(fuzz->ratio * MAGIC1)) ^ MAGIC2;
     136            uint32_t chunkseed = ((int)i + (int)(fuzz->ratio * MAGIC1)) ^ MAGIC2;
    136137            _zz_srand(fuzz->seed ^ chunkseed);
    137138
     
    247248                     && tmp[2] && strchr(hex, tmp[2]))
    248249            {
    249                 new = ((strchr(hex, tmp[1]) - hex) & 0xf) << 4;
    250                 new |= (strchr(hex, tmp[2]) - hex) & 0xf;
     250                new = ((int)(strchr(hex, tmp[1]) - hex) & 0xf) << 4;
     251                new |= (int)(strchr(hex, tmp[2]) - hex) & 0xf;
    251252                tmp += 2;
    252253            }
Note: See TracChangeset for help on using the changeset viewer.