]> granicus.if.org Git - python/commitdiff
Added B format char to Py_BuildValue (same as b,h,i, but makes
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 15 Sep 2000 12:52:19 +0000 (12:52 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 15 Sep 2000 12:52:19 +0000 (12:52 +0000)
bgen-generated code work).

Python/getargs.c

index 3b73e410aeb161aac69e15cad64784c725533c00..1dddae499177cf7c1acaf20d2e064e84dfed0e5d 100644 (file)
@@ -411,7 +411,7 @@ convertsimple1(PyObject *arg, char **p_format, va_list *p_va)
                              "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>";