[Python-checkins] r45506 - python/trunk/Parser/tokenizer.c

skip.montanaro python-checkins at python.org
Tue Apr 18 02:53:07 CEST 2006


Author: skip.montanaro
Date: Tue Apr 18 02:53:06 2006
New Revision: 45506

Modified:
   python/trunk/Parser/tokenizer.c
Log:
C++ compiler cleanup: cast signed to unsigned

Modified: python/trunk/Parser/tokenizer.c
==============================================================================
--- python/trunk/Parser/tokenizer.c	(original)
+++ python/trunk/Parser/tokenizer.c	Tue Apr 18 02:53:06 2006
@@ -1230,7 +1230,7 @@
 		do {
 			*tp++ = c = tok_nextc(tok);
 		} while (c != EOF && c != '\n' &&
-			 tp - cbuf + 1 < sizeof(cbuf));
+			 (unsigned int)(tp - cbuf + 1) < sizeof(cbuf));
 		*tp = '\0';
 		for (cp = tabforms;
 		     cp < tabforms + sizeof(tabforms)/sizeof(tabforms[0]);


More information about the Python-checkins mailing list