]> granicus.if.org Git - python/commitdiff
C++ compiler cleanup: cast signed to unsigned
authorSkip Montanaro <skip@pobox.com>
Tue, 18 Apr 2006 00:53:06 +0000 (00:53 +0000)
committerSkip Montanaro <skip@pobox.com>
Tue, 18 Apr 2006 00:53:06 +0000 (00:53 +0000)
Parser/tokenizer.c

index 10e5253ad0ae4e6b3b927ec98b90190bc267ce97..4a281050be3d5bd2c897ce90eedeb8345b8eb22c 100644 (file)
@@ -1230,7 +1230,7 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
                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]);