Cast UCHAR_MAX to int before doing the comparison for overflow of the
B format char.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user