[Python-checkins] python/dist/src/Parser tokenizer.c,2.55,2.56
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Sun, 04 Aug 2002 10:56:44 -0700
Update of /cvsroot/python/python/dist/src/Parser
In directory usw-pr-cvs1:/tmp/cvs-serv7455/python/Parser
Modified Files:
tokenizer.c
Log Message:
Squash compiler wng about signed-vs-unsigned mismatch.
Index: tokenizer.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/tokenizer.c,v
retrieving revision 2.55
retrieving revision 2.56
diff -C2 -d -r2.55 -r2.56
*** tokenizer.c 4 Aug 2002 17:29:52 -0000 2.55
--- tokenizer.c 4 Aug 2002 17:56:42 -0000 2.56
***************
*** 329,333 ****
else {
const char* str = PyString_AsString(utf8);
! assert(strlen(str) < size); /* XXX */
strcpy(s, str);
Py_DECREF(utf8);
--- 329,333 ----
else {
const char* str = PyString_AsString(utf8);
! assert(strlen(str) < (size_t)size); /* XXX */
strcpy(s, str);
Py_DECREF(utf8);