From 2c646c9fc1964603adcc7687016de76effc66a55 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 10 Feb 2003 14:48:29 +0000 Subject: Squashed compiler wng about signed/unsigned clash in comparison. --- Python/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 19af6f7..b9aa85c 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; -- cgit v0.12