From: miha-q <> Date: Mon, 12 Feb 2024 18:03:15 +0000 (-0500) Subject: Mon Feb 12 01:03:15 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=005837462d5cdc6f4ae3787d3b09c6cdea410efe;p=QAnsel.git Mon Feb 12 01:03:15 PM EST 2024 --- diff --git a/src/QAnsel.c b/src/QAnsel.c index e2ce18f..98aa7e0 100644 --- a/src/QAnsel.c +++ b/src/QAnsel.c @@ -1309,7 +1309,7 @@ void process(int argc, char** argv) for (uint8_t j = 0; j < bitCount; j++) { uint8_t bit = (tmp >> (bitCount - 1) & 1); - if (j == fullSample - 1 && bit) + if (j == (bitCount - (fullSample - 1) - 1) && bit) { count += stats[i]; }