From: Tim Peters Date: Mon, 10 Feb 2003 14:48:29 +0000 (+0000) Subject: Squashed compiler wng about signed/unsigned clash in comparison. X-Git-Tag: v2.3c1~1938 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c646c9fc1964603adcc7687016de76effc66a55;p=python Squashed compiler wng about signed/unsigned clash in comparison. --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 19af6f7873..b9aa85cdcf 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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;