Use ULL prefix instead of LLU for unsigned long longs
MSVC only supports the former.
This commit is contained in:
@@ -511,7 +511,7 @@ uint64_t gen_rand64(sfmt_t *ctx) {
|
||||
uint64_t gen_rand64_range(sfmt_t *ctx, uint64_t limit) {
|
||||
uint64_t ret, above;
|
||||
|
||||
above = 0xffffffffffffffffLLU - (0xffffffffffffffffLLU % limit);
|
||||
above = 0xffffffffffffffffULL - (0xffffffffffffffffULL % limit);
|
||||
while (1) {
|
||||
ret = gen_rand64(ctx);
|
||||
if (ret < above) {
|
||||
|
Reference in New Issue
Block a user