mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 12:13:47 +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};
|
static s32_t state[1] = {0xdeadbeef};
|
||||||
uint64_t val = state[0] & 0xffffffff;
|
uint64_t val = state[0] & 0xffffffff;
|
||||||
val = ((val * 1103515245) + 12345) & 0x7fffffff;
|
val = ((val * 1103515245) + 12345) & 0x7fffffff;
|
||||||
state[0] = val;
|
state[0] = (s32_t)val;
|
||||||
result = val;
|
result = (u32_t)val;
|
||||||
return result;
|
return result;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user