summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-09-15 12:51:01 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-09-15 12:51:01 (GMT)
commitb763b9d9d572e3794fc78a93ffa7c904510c15f7 (patch)
tree026a0e73ee436020af9c8488189999e729f02a1b /Python
parent2af72d5d6d25949bcdeb03dd38d9f8753f33d6b5 (diff)
downloadcpython-b763b9d9d572e3794fc78a93ffa7c904510c15f7.zip
cpython-b763b9d9d572e3794fc78a93ffa7c904510c15f7.tar.gz
cpython-b763b9d9d572e3794fc78a93ffa7c904510c15f7.tar.bz2
Cast UCHAR_MAX to int before doing the comparison for overflow of the
B format char.
Diffstat (limited to 'Python')
-rw-r--r--Python/modsupport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c
index 2cadeb8..c87f994 100644
--- a/Python/modsupport.c
+++ b/Python/modsupport.c
@@ -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));