Kaydet (Commit) b763b9d9 authored tarafından Jack Jansen's avatar Jack Jansen

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

B format char.
üst 2af72d5d
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment