[Python-checkins] r41968 - python/trunk/Python/ast.c

tim.peters python-checkins at python.org
Sun Jan 8 03:25:38 CET 2006


Author: tim.peters
Date: Sun Jan  8 03:25:34 2006
New Revision: 41968

Modified:
   python/trunk/Python/ast.c
Log:
alias_for_import_name():  Dueling compiler warnings ;-)
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.


Modified: python/trunk/Python/ast.c
==============================================================================
--- python/trunk/Python/ast.c	(original)
+++ python/trunk/Python/ast.c	Sun Jan  8 03:25:34 2006
@@ -2030,7 +2030,8 @@
                 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;


More information about the Python-checkins mailing list