summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-15 21:30:40 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-08-15 21:30:40 (GMT)
commit98ea54c35c37e4f9a7d7a923a7ccd792f4b7ff90 (patch)
tree126cb038a65e06368c70f900ed90139c0e67a66b /Python/bltinmodule.c
parenteae94706a30c99150982034d644d8b3abf28110b (diff)
downloadcpython-98ea54c35c37e4f9a7d7a923a7ccd792f4b7ff90.zip
cpython-98ea54c35c37e4f9a7d7a923a7ccd792f4b7ff90.tar.gz
cpython-98ea54c35c37e4f9a7d7a923a7ccd792f4b7ff90.tar.bz2
Issue #22156: Fix "comparison between signed and unsigned integers" compiler
warnings in the Python/ subdirectory.
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 d905ba2..d2d1698 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -581,7 +581,7 @@ source_as_string(PyObject *cmd, char *funcname, char *what, PyCompilerFlags *cf)
return NULL;
}
- if (strlen(str) != size) {
+ if (strlen(str) != (size_t)size) {
PyErr_SetString(PyExc_TypeError,
"source code string cannot contain null bytes");
return NULL;