]> granicus.if.org Git - python/commitdiff
Add unsigned char cast
authorGuido van Rossum <guido@python.org>
Sun, 25 Feb 1996 04:50:30 +0000 (04:50 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 25 Feb 1996 04:50:30 +0000 (04:50 +0000)
Modules/binascii.c

index 95d7bb0dac1bafa8b5655095f8482cf933328db6..c74ed3c21947e6482c8b97cfa29f9a73f0f4fe01 100644 (file)
@@ -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.