aboutsummaryrefslogtreecommitdiff
path: root/src/nissy.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-17 17:52:22 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-17 17:52:22 +0200
commitd1bb88ff0b02f4e314ccecd851162ae30059ce29 (patch)
tree21c547024b47202c4f66568c193724d30d497909 /src/nissy.c
parentf91e5c4c83a071ab720417d490fd44a8f4678bc1 (diff)
downloadnissy-core-d1bb88ff0b02f4e314ccecd851162ae30059ce29.tar.gz
nissy-core-d1bb88ff0b02f4e314ccecd851162ae30059ce29.zip
Sped up checkdata for H48 tables
Diffstat (limited to '')
-rw-r--r--src/nissy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nissy.c b/src/nissy.c
index ba43e5d..f22f606 100644
--- a/src/nissy.c
+++ b/src/nissy.c
@@ -105,7 +105,7 @@ distribution_equal(
105 int wrong; 105 int wrong;
106 uint8_t i; 106 uint8_t i;
107 107
108 for (i = 0, wrong = 0; i <= MAX(maxvalue, 20); i++) { 108 for (i = 0, wrong = 0; i <= MIN(maxvalue, 20); i++) {
109 if (expected[i] != actual[i]) { 109 if (expected[i] != actual[i]) {
110 wrong++; 110 wrong++;
111 LOG("Value %" PRIu8 ": expected %" PRIu64 ", found %" 111 LOG("Value %" PRIu8 ": expected %" PRIu64 ", found %"

Generated with cgit - Back to sebastiano.tronto.net