Use KQU() rather than QU() where applicable.

Fix KZI() and KQI() to append LL rather than ULL.
This commit is contained in:
Jason Evans
2014-05-28 21:14:16 -07:00
parent d04047cc29
commit 1f6d77e1f6
5 changed files with 1046 additions and 1046 deletions

View File

@@ -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 = 0xffffffffffffffffULL - (0xffffffffffffffffULL % limit);
above = KQU(0xffffffffffffffff) - (KQU(0xffffffffffffffff) % limit);
while (1) {
ret = gen_rand64(ctx);
if (ret < above) {