Cast UCHAR_MAX to int before doing the comparison for overflow of the

B format char.
This commit is contained in:
Jack Jansen 2000-09-15 12:51:01 +00:00
parent 2af72d5d6d
commit b763b9d9d5

View file

@ -247,6 +247,7 @@ do_mkvalue(char **p_format, va_list *p_va)
countformat(*p_format, '}'));
case 'b':
case 'B':
case 'h':
case 'i':
return PyInt_FromLong((long)va_arg(*p_va, int));