Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a454ebd

Browse files
committed
Added B format char to Py_BuildValue (same as b,h,i, but makes
bgen-generated code work).
1 parent b763b9d commit a454ebd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/getargs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ convertsimple1(PyObject *arg, char **p_format, va_list *p_va)
411411
"byte-sized integer bitfield is less than minimum");
412412
return "integer<B>";
413413
}
414-
else if (ival > UCHAR_MAX) {
414+
else if (ival > (int)UCHAR_MAX) {
415415
PyErr_SetString(PyExc_OverflowError,
416416
"byte-sized integer bitfield is greater than maximum");
417417
return "integer<B>";

0 commit comments

Comments
 (0)