diff Python/getargs.c @ 14589:9ab419a5e052 legacy-trunk

Added B format char to Py_BuildValue (same as b,h,i, but makes bgen-generated code work).
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 15 Sep 2000 12:52:19 +0000
parents 142cb4e7310c
children 336a6179e059
line wrap: on
line diff
--- a/Python/getargs.c	Fri Sep 15 12:51:01 2000 +0000
+++ b/Python/getargs.c	Fri Sep 15 12:52:19 2000 +0000
@@ -411,7 +411,7 @@
 			      "byte-sized integer bitfield is less than minimum");
 				return "integer<B>";
 			}
-			else if (ival > UCHAR_MAX) {
+			else if (ival > (int)UCHAR_MAX) {
 				PyErr_SetString(PyExc_OverflowError,
 			      "byte-sized integer bitfield is greater than maximum");
 				return "integer<B>";