diff options
author | Larry Hastings <larry@hastings.org> | 2014-08-05 09:55:21 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2014-08-05 09:55:21 (GMT) |
commit | a73cb8a6b82b4dbf0aa9684d4356f0b6e689360a (patch) | |
tree | c547420011185cf5c0704cc4fb8e0a8de4eaba47 /Modules/clinic | |
parent | 57acacdfcf6cf61ef22c92e4848e01fd2aef9911 (diff) | |
download | cpython-a73cb8a6b82b4dbf0aa9684d4356f0b6e689360a.zip cpython-a73cb8a6b82b4dbf0aa9684d4356f0b6e689360a.tar.gz cpython-a73cb8a6b82b4dbf0aa9684d4356f0b6e689360a.tar.bz2 |
Issue #22120: For functions using an unsigned integer return converter,
Argument Clinic now generates a cast to that type for the comparison
to -1 in the generated code. (This supresses a compilation warning.)
Diffstat (limited to 'Modules/clinic')
-rw-r--r-- | Modules/clinic/binascii.c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/clinic/binascii.c.h b/Modules/clinic/binascii.c.h index 5247180..6147be9 100644 --- a/Modules/clinic/binascii.c.h +++ b/Modules/clinic/binascii.c.h @@ -320,7 +320,7 @@ binascii_crc32(PyModuleDef *module, PyObject *args) &data, &crc)) goto exit; _return_value = binascii_crc32_impl(module, &data, crc); - if ((_return_value == -1) && PyErr_Occurred()) + if ((_return_value == (unsigned int)-1) && PyErr_Occurred()) goto exit; return_value = PyLong_FromUnsignedLong((unsigned long)_return_value); @@ -475,4 +475,4 @@ exit: return return_value; } -/*[clinic end generated code: output=68e2bcc6956b6213 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=53cd6b379c745220 input=a9049054013a1b77]*/ |