Changeset 1736 for zzuf/trunk/src/fuzz.c
- Timestamp:
- Feb 2, 2007, 12:58:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/fuzz.c
r1732 r1736 116 116 struct fuzz *fuzz; 117 117 volatile uint8_t *aligned_buf; 118 int i, j, todo; 118 int64_t i, j; 119 int todo; 119 120 120 121 #if 0 … … 133 134 if(fuzz->cur != (int)i) 134 135 { 135 uint32_t chunkseed = ( i + (int)(fuzz->ratio * MAGIC1)) ^ MAGIC2;136 uint32_t chunkseed = ((int)i + (int)(fuzz->ratio * MAGIC1)) ^ MAGIC2; 136 137 _zz_srand(fuzz->seed ^ chunkseed); 137 138 … … 247 248 && tmp[2] && strchr(hex, tmp[2])) 248 249 { 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; 251 252 tmp += 2; 252 253 }
Note: See TracChangeset
for help on using the changeset viewer.