mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
fuzz: fix warning casting u64_t to s32_t/u32_t
This commit is contained in:
parent
5fea01a0a8
commit
9509acd876
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user