]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Obscure bugfix
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 31 Aug 1995 13:44:23 +0000 (13:44 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 31 Aug 1995 13:44:23 +0000 (13:44 +0000)
Modules/binascii.c

index bf26e0c5a1ccbb9df0f033f5ac7994ce1e3b0b22..7450349d8999dc5098771f070eaf14f85dfde739 100644 (file)
@@ -383,11 +383,8 @@ binascii_rlecode_hqx(self, args)
                            inend<len && in_data[inend] == ch &&
                                inend < in+255;
                            inend++) ;
-                       if ( inend - in > 3 && inend-in != RUNCHAR ) {
-                               /* More than 3 in a row. Output RLE.
-                               ** The special case of exactly 0x90 repeats will result in a single
-                               ** byte now and a 0x8f repeat next time around
-                               */
+                       if ( inend - in > 3 ) {
+                               /* More than 3 in a row. Output RLE. */
                                *out_data++ = ch;
                                *out_data++ = RUNCHAR;
                                *out_data++ = inend-in;