mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
#endif
|
||||||
if (PyObject_AsReadBuffer(cmd, (const void **)&str, &length))
|
if (PyObject_AsReadBuffer(cmd, (const void **)&str, &length))
|
||||||
return NULL;
|
return NULL;
|
||||||
if (length != strlen(str)) {
|
if ((size_t)length != strlen(str)) {
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
"expected string without null bytes");
|
"expected string without null bytes");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue