Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5db42c4

Browse files
committed
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.
1 parent d8fe7ab commit 5db42c4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/ast.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2030,7 +2030,8 @@ alias_for_import_name(struct compiling *c, const node *n)
20302030
return alias(NEW_IDENTIFIER(CHILD(n, 0)), NULL, c->c_arena);
20312031
else {
20322032
/* Create a string of the form "a.b.c" */
2033-
size_t i, len;
2033+
int i;
2034+
size_t len;
20342035
char *s;
20352036

20362037
len = 0;

0 commit comments

Comments
 (0)