]> granicus.if.org Git - python/commitdiff
Cast UCHAR_MAX to int before doing the comparison for overflow of the
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 15 Sep 2000 12:51:01 +0000 (12:51 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 15 Sep 2000 12:51:01 +0000 (12:51 +0000)
B format char.

Python/modsupport.c

index 2cadeb8268cbbb3ca7f2c45fd2ce51563d792074..c87f994f20539a139c148f01dc1a6ed307417cda 100644 (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));