commit | 485f2da5a1fc799c0fbe87f61646b0a28af59cbf | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sun Feb 25 04:50:30 1996 +0000 |
committer | Guido van Rossum <guido@python.org> | Sun Feb 25 04:50:30 1996 +0000 |
tree | 6eb1bf0f6baeb7bc3496b35ef129eb2dbf8b95a1 | |
parent | ec22c92e367db0af8c147d388b6a4d0e6b480326 [diff] |
Add unsigned char cast
diff --git a/Modules/binascii.c b/Modules/binascii.c index 95d7bb0..c74ed3c 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c
@@ -351,7 +351,7 @@ 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.