From b763b9d9d572e3794fc78a93ffa7c904510c15f7 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 15 Sep 2000 12:51:01 +0000 Subject: Cast UCHAR_MAX to int before doing the comparison for overflow of the B format char. --- Python/modsupport.c | 1 + 1 file changed, 1 insertion(+) 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)); -- cgit v0.12