summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-02-10 14:48:29 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-02-10 14:48:29 (GMT)
commit2c646c9fc1964603adcc7687016de76effc66a55 (patch)
tree81c304751905de06722355cc23e967574fb906f4 /Python/bltinmodule.c
parent26bf3acf42578c1d7798638f425d4d35b4cd807e (diff)
downloadcpython-2c646c9fc1964603adcc7687016de76effc66a55.zip
cpython-2c646c9fc1964603adcc7687016de76effc66a55.tar.gz
cpython-2c646c9fc1964603adcc7687016de76effc66a55.tar.bz2
Squashed compiler wng about signed/unsigned clash in comparison.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
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;