mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
d8fe7ab711
commit
5db42c4c50
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue