From 445e2c579e1a33aa2b6b5650c3c05327b7e36db8 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 15 Sep 2000 12:52:19 +0000 Subject: Added B format char to Py_BuildValue (same as b,h,i, but makes bgen-generated code work). --- Python/getargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python') diff --git a/Python/getargs.c b/Python/getargs.c index 3b73e410ae..1dddae4991 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -411,7 +411,7 @@ convertsimple1(PyObject *arg, char **p_format, va_list *p_va) "byte-sized integer bitfield is less than minimum"); return "integer"; } - 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"; -- cgit v1.2.1