Fix really dumb braino of mine; cast a sizeof() to an int, which it is
being compared to, not size_t, which it already is.
This commit is contained in:
parent
28e7ba4d11
commit
815eb79cb8
@ -110,7 +110,7 @@ read_random_phony(void *buf, int count)
|
||||
srandom((u_long)get_cyclecount());
|
||||
|
||||
/* Fill buf[] with random(9) output */
|
||||
for (i = 0; i < count; i+= (size_t)sizeof(u_long)) {
|
||||
for (i = 0; i < count; i+= (int)sizeof(u_long)) {
|
||||
randval = random();
|
||||
size = (count - i) < (int)sizeof(u_long)
|
||||
? (count - i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user