diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-09-15 12:52:19 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-09-15 12:52:19 (GMT) |
commit | a454ebd924a9cb1de554933c8aaed5994d7ef94f (patch) | |
tree | 402890aa287dc0edfecab8f9485ac3877cb947be /Python | |
parent | b763b9d9d572e3794fc78a93ffa7c904510c15f7 (diff) | |
download | cpython-a454ebd924a9cb1de554933c8aaed5994d7ef94f.zip cpython-a454ebd924a9cb1de554933c8aaed5994d7ef94f.tar.gz cpython-a454ebd924a9cb1de554933c8aaed5994d7ef94f.tar.bz2 |
Added B format char to Py_BuildValue (same as b,h,i, but makes
bgen-generated code work).
Diffstat (limited to 'Python')
-rw-r--r-- | Python/getargs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 3b73e41..1dddae4 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<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>"; |