From b5b16be0adc372bf357af514b32129096a861ea1 Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 19 Jun 2025 23:42:12 +0200 Subject: [PATCH] mod does not need the width of ull, so set it to be int --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index a443ba4..56b3493 100644 --- a/src/main.c +++ b/src/main.c @@ -40,7 +40,7 @@ int main(int argc, char** argv) { if (errno != 0) error(errno, "parse error for string: '%s'\n", argv[i]); // acquire random data (compiler will optimize MOD and DIV away since they're both base-2 constant values) - ull mod = c % (sizeof(ull) * 8); // get the remainder of the available random bits + int mod = c % (sizeof(ull) * 8); // get the remainder of the available random bits c = c / (sizeof(ull) * 8); // compute our "word count" // dynamically scale the array to our needs, ensuring 2^n scaling