fuzz: fix warning casting u64_t to s32_t/u32_t

This commit is contained in:
Simon Goldschmidt 2023-10-03 21:11:57 +02:00
parent 5fea01a0a8
commit 9509acd876

View File

@ -694,8 +694,8 @@ u32_t lwip_fuzz_rand(void)
static s32_t state[1] = {0xdeadbeef};
uint64_t val = state[0] & 0xffffffff;
val = ((val * 1103515245) + 12345) & 0x7fffffff;
state[0] = val;
result = val;
state[0] = (s32_t)val;
result = (u32_t)val;
return result;
#endif
}