mirror of
https://github.com/python/cpython.git
synced 2024-11-26 19:34:19 +08:00
Squashed compiler wng about signed/unsigned clash in comparison.
This commit is contained in:
parent
26bf3acf42
commit
2c646c9fc1
@ -362,7 +362,7 @@ builtin_compile(PyObject *self, PyObject *args)
|
||||
#endif
|
||||
if (PyObject_AsReadBuffer(cmd, (const void **)&str, &length))
|
||||
return NULL;
|
||||
if (length != strlen(str)) {
|
||||
if ((size_t)length != strlen(str)) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"expected string without null bytes");
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user