]> foleosoft.com Git - QAnsel.git/commitdiff
Mon Feb 12 01:03:15 PM EST 2024
authormiha-q <>
Mon, 12 Feb 2024 18:03:15 +0000 (13:03 -0500)
committermiha-q <>
Mon, 12 Feb 2024 18:03:15 +0000 (13:03 -0500)
src/QAnsel.c

index e2ce18feb8c6ce67eadf72fa5662a5a193b7ff60..98aa7e00f4ee391914e14e8c10357ef2522fcc95 100644 (file)
@@ -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];
                                }