Added B format char to Py_BuildValue (same as b,h,i, but makes

bgen-generated code work).
This commit is contained in:
Jack Jansen 2000-09-15 12:52:19 +00:00
parent b763b9d9d5
commit a454ebd924
1 changed files with 1 additions and 1 deletions

View 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>";