comparison Python/modsupport.c @ 14588:dcbc084d046e legacy-trunk

Cast UCHAR_MAX to int before doing the comparison for overflow of the B format char.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 15 Sep 2000 12:51:01 +0000
parents 6f6f965c5e2d
children 081671cef7c1
comparison
equal deleted inserted replaced
14587:e8d8758adfdb 14588:dcbc084d046e
245 case '{': 245 case '{':
246 return do_mkdict(p_format, p_va, '}', 246 return do_mkdict(p_format, p_va, '}',
247 countformat(*p_format, '}')); 247 countformat(*p_format, '}'));
248 248
249 case 'b': 249 case 'b':
250 case 'B':
250 case 'h': 251 case 'h':
251 case 'i': 252 case 'i':
252 return PyInt_FromLong((long)va_arg(*p_va, int)); 253 return PyInt_FromLong((long)va_arg(*p_va, int));
253 254
254 case 'H': 255 case 'H':