summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-20 10:32:24 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-20 10:32:24 (GMT)
commitf50e1877245123a21f053d73951594794fa18500 (patch)
tree87e7cee7867121452aa3b880ca0b950be1fefde7 /Modules
parent7f04d4d4b7fe0ed5c56b1778c63ee6ac2170a694 (diff)
downloadcpython-f50e1877245123a21f053d73951594794fa18500.zip
cpython-f50e1877245123a21f053d73951594794fa18500.tar.gz
cpython-f50e1877245123a21f053d73951594794fa18500.tar.bz2
Fix compiler warnings: comparison between signed and unsigned numbers
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 147b48e..8cf6140 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1738,7 +1738,7 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args,
return 0;
}
- if (PyBytes_GET_SIZE(ctl_name) > sizeof(info.ctl_name)) {
+ if (PyBytes_GET_SIZE(ctl_name) > (Py_ssize_t)sizeof(info.ctl_name)) {
PyErr_SetString(PyExc_ValueError,
"provided string is too long");
Py_DECREF(ctl_name);