alias_for_import_name(): Dueling compiler warnings ;-)
authorTim Peters <tim.peters@gmail.com>
Sun, 8 Jan 2006 02:25:34 +0000 (02:25 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 8 Jan 2006 02:25:34 +0000 (02:25 +0000)
Squash new warnings from VC 7.1 about mixing signed and
unsigned types in comparisons.  I can see why `len` was
changed to size_t here, but don't see why `i` was also
changed.  Change `i` back to int.

Python/ast.c

index 9b32f8b8e575266ba33e90417d4ecf068be3d4a0..94fc9e8c6fc6cc262a82dbc5d32bdc453f455b4e 100644 (file)
@@ -2030,7 +2030,8 @@ alias_for_import_name(struct compiling *c, const node *n)
                 return alias(NEW_IDENTIFIER(CHILD(n, 0)), NULL, c->c_arena);
             else {
                 /* Create a string of the form "a.b.c" */
-                size_t i, len;
+                               int i;
+                size_t len;
                 char *s;
 
                 len = 0;