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:
Mark Murray 2002-04-21 11:02:36 +00:00
parent 28e7ba4d11
commit 815eb79cb8

View File

@ -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)