diff Python/modsupport.c @ 14588:dcbc084d046e legacy-trunk

Cast UCHAR_MAX to int before doing the comparison for overflow of the B format char.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 15 Sep 2000 12:51:01 +0000
parents 6f6f965c5e2d
children 081671cef7c1
line wrap: on
line diff
--- a/Python/modsupport.c	Fri Sep 15 08:10:33 2000 +0000
+++ b/Python/modsupport.c	Fri Sep 15 12:51:01 2000 +0000
@@ -247,6 +247,7 @@
 					 countformat(*p_format, '}'));
 
 		case 'b':
+		case 'B':
 		case 'h':
 		case 'i':
 			return PyInt_FromLong((long)va_arg(*p_va, int));