mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Squashed compiler wng about signed/unsigned clash in comparison.
This commit is contained in:
parent
26bf3acf42
commit
2c646c9fc1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue