summaryrefslogtreecommitdiffstats
path: root/Modules/binascii.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-08-31 13:44:23 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-08-31 13:44:23 (GMT)
commit0223aa11d886e04c29e45eb01a37c8d59c90f499 (patch)
tree6895b217c32862c2ddc2722bf4554548797c9b0e /Modules/binascii.c
parent0949055ddf46ce18c55a1a56c557363c7c96bff9 (diff)
downloadcpython-0223aa11d886e04c29e45eb01a37c8d59c90f499.zip
cpython-0223aa11d886e04c29e45eb01a37c8d59c90f499.tar.gz
cpython-0223aa11d886e04c29e45eb01a37c8d59c90f499.tar.bz2
Obscure bugfix
Diffstat (limited to 'Modules/binascii.c')
-rw-r--r--Modules/binascii.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c
index bf26e0c..7450349 100644
--- a/Modules/binascii.c
+++ b/Modules/binascii.c
@@ -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;