From: Guido van Rossum Date: Sun, 25 Feb 1996 04:50:30 +0000 (+0000) Subject: Add unsigned char cast X-Git-Tag: v1.4b1~327 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=485f2da5a1fc799c0fbe87f61646b0a28af59cbf;p=thirdparty%2FPython%2Fcpython.git Add unsigned char cast --- diff --git a/Modules/binascii.c b/Modules/binascii.c index 95d7bb0dac1b..c74ed3c21947 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -351,7 +351,7 @@ binascii_a2b_base64(self, args) if ( this_ch == BASE64_PAD ) npad++; this_ch = table_a2b_base64[(*ascii_data) & 0x7f]; - if ( this_ch == -1 ) continue; + if ( this_ch == (unsigned char) -1 ) continue; /* ** Shift it in on the low end, and see if there's ** a byte ready for output.