Commit 2c646c9f authored by Tim Peters's avatar Tim Peters

Squashed compiler wng about signed/unsigned clash in comparison.

parent 26bf3acf
...@@ -362,7 +362,7 @@ builtin_compile(PyObject *self, PyObject *args) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment