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)
#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;
......
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