[Python-checkins] python/dist/src/Python bltinmodule.c,2.278,2.279
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Mon, 10 Feb 2003 06:48:33 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv6185/Python
Modified Files:
bltinmodule.c
Log Message:
Squashed compiler wng about signed/unsigned clash in comparison.
Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.278
retrieving revision 2.279
diff -C2 -d -r2.278 -r2.279
*** bltinmodule.c 10 Feb 2003 13:19:12 -0000 2.278
--- bltinmodule.c 10 Feb 2003 14:48:29 -0000 2.279
***************
*** 363,367 ****
if (PyObject_AsReadBuffer(cmd, (const void **)&str, &length))
return NULL;
! if (length != strlen(str)) {
PyErr_SetString(PyExc_TypeError,
"expected string without null bytes");
--- 363,367 ----
if (PyObject_AsReadBuffer(cmd, (const void **)&str, &length))
return NULL;
! if ((size_t)length != strlen(str)) {
PyErr_SetString(PyExc_TypeError,
"expected string without null bytes");