Skip to content

Commit

Permalink
fuzz: fix warning casting u64_t to s32_t/u32_t
Browse files Browse the repository at this point in the history
  • Loading branch information
goldsimon committed Oct 3, 2023
1 parent 5fea01a commit 9509acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fuzz/fuzz_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9509acd

Please sign in to comment.