From b763b9d9d572e3794fc78a93ffa7c904510c15f7 Mon Sep 17 00:00:00 2001
From: Jack Jansen <jack.jansen@cwi.nl>
Date: Fri, 15 Sep 2000 12:51:01 +0000
Subject: [PATCH] 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 2cadeb8268..c87f994f20 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));
-- 
2.50.0