commit | 2c646c9fc1964603adcc7687016de76effc66a55 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Mon Feb 10 14:48:29 2003 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Mon Feb 10 14:48:29 2003 +0000 |
tree | 81c304751905de06722355cc23e967574fb906f4 | |
parent | 26bf3acf42578c1d7798638f425d4d35b4cd807e [diff] [blame] |
Squashed compiler wng about signed/unsigned clash in comparison.
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 @@ #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;