mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	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
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -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); |                 return alias(NEW_IDENTIFIER(CHILD(n, 0)), NULL, c->c_arena); | ||||||
|             else { |             else { | ||||||
|                 /* Create a string of the form "a.b.c" */ |                 /* Create a string of the form "a.b.c" */ | ||||||
|                 size_t i, len; | 				int i; | ||||||
|  |                 size_t len; | ||||||
|                 char *s; |                 char *s; | ||||||
| 
 | 
 | ||||||
|                 len = 0; |                 len = 0; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Peters
						Tim Peters