From 485f2da5a1fc799c0fbe87f61646b0a28af59cbf Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 25 Feb 1996 04:50:30 +0000 Subject: [PATCH] Add unsigned char cast --- Modules/binascii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/binascii.c b/Modules/binascii.c index 95d7bb0dac..c74ed3c219 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. -- 2.50.1