mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Cast UCHAR_MAX to int before doing the comparison for overflow of the
B format char.
This commit is contained in:
parent
2af72d5d6d
commit
b763b9d9d5
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue