mirror of
https://github.com/python/cpython.git
synced 2025-09-03 15:31:08 +00:00
Obscure bugfix
This commit is contained in:
parent
0949055ddf
commit
0223aa11d8
1 changed files with 2 additions and 5 deletions
|
@ -383,11 +383,8 @@ binascii_rlecode_hqx(self, args)
|
||||||
inend<len && in_data[inend] == ch &&
|
inend<len && in_data[inend] == ch &&
|
||||||
inend < in+255;
|
inend < in+255;
|
||||||
inend++) ;
|
inend++) ;
|
||||||
if ( inend - in > 3 && inend-in != RUNCHAR ) {
|
if ( inend - in > 3 ) {
|
||||||
/* More than 3 in a row. Output RLE.
|
/* 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
|
|
||||||
*/
|
|
||||||
*out_data++ = ch;
|
*out_data++ = ch;
|
||||||
*out_data++ = RUNCHAR;
|
*out_data++ = RUNCHAR;
|
||||||
*out_data++ = inend-in;
|
*out_data++ = inend-in;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue