:: commit 7206e93315100d3d7b8ee2120e5d23fdb50d1752

Kamila Szewczyk <kspalaiologos@gmail.com> — 2022-05-06 18:42

parents: 35691387c6

cm run size fix

diff --git a/src/cm.c b/src/cm.c
index 957e30c..727207d 100644
--- a/src/cm.c
+++ b/src/cm.c
@@ -114,7 +114,7 @@ void encode_byte(state * s, u8 c) {
     else
         s->run = 0;
 
-    const int f = s->run > 1;
+    const int f = s->run > 2;
 
     int ctx = 1;
 
@@ -158,7 +158,7 @@ u8 decode_byte(state * s) {
     else
         s->run = 0;
 
-    const int f = s->run > 1;
+    const int f = s->run > 2;
 
     int ctx = 1;
 
tab: 248 wrap: offon