summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;