Squashed compiler wng about signed/unsigned clash in comparison.

This commit is contained in:
Tim Peters 2003-02-10 14:48:29 +00:00
parent 26bf3acf42
commit 2c646c9fc1

View File

@ -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;