diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-01-08 02:25:34 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-01-08 02:25:34 (GMT) |
commit | 5db42c4c5088ce511d35c0a8942f563d95e13230 (patch) | |
tree | 03f6f23012a1fccff0346e5a1f715a52ba6d9992 /Python | |
parent | d8fe7ab711df2d6380aeff085fe8eda6b268f3eb (diff) | |
download | cpython-5db42c4c5088ce511d35c0a8942f563d95e13230.zip cpython-5db42c4c5088ce511d35c0a8942f563d95e13230.tar.gz cpython-5db42c4c5088ce511d35c0a8942f563d95e13230.tar.bz2 |
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.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c index 9b32f8b..94fc9e8 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -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; |