Add unsigned char cast

This commit is contained in:
Guido van Rossum 1996-02-25 04:50:30 +00:00
parent ec22c92e36
commit 485f2da5a1

View 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.