mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	gh-123205: Python/bytecodes.c: Fix compiler warning (#123206)
				
					
				
			Fix MSVC warning "conversion from '__int64' to 'int'"
This commit is contained in:
		
							parent
							
								
									d7ae4dc5c1
								
							
						
					
					
						commit
						67f2c84bff
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		|  | @ -2215,7 +2215,7 @@ dummy_func( | |||
|             *value_ptr = PyStackRef_AsPyObjectSteal(value); | ||||
|             if (old_value == NULL) { | ||||
|                 PyDictValues *values = _PyObject_InlineValues(owner_o); | ||||
|                 int index = value_ptr - values->values; | ||||
|                 Py_ssize_t index = value_ptr - values->values; | ||||
|                 _PyDictValues_AddToInsertionOrder(values, index); | ||||
|             } | ||||
|             else { | ||||
|  |  | |||
							
								
								
									
										2
									
								
								Python/executor_cases.c.h
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								Python/executor_cases.c.h
									
										
									
										generated
									
									
									
								
							|  | @ -2596,7 +2596,7 @@ | |||
|             *value_ptr = PyStackRef_AsPyObjectSteal(value); | ||||
|             if (old_value == NULL) { | ||||
|                 PyDictValues *values = _PyObject_InlineValues(owner_o); | ||||
|                 int index = value_ptr - values->values; | ||||
|                 Py_ssize_t index = value_ptr - values->values; | ||||
|                 _PyDictValues_AddToInsertionOrder(values, index); | ||||
|             } | ||||
|             else { | ||||
|  |  | |||
							
								
								
									
										2
									
								
								Python/generated_cases.c.h
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								Python/generated_cases.c.h
									
										
									
										generated
									
									
									
								
							|  | @ -6881,7 +6881,7 @@ | |||
|                 *value_ptr = PyStackRef_AsPyObjectSteal(value); | ||||
|                 if (old_value == NULL) { | ||||
|                     PyDictValues *values = _PyObject_InlineValues(owner_o); | ||||
|                     int index = value_ptr - values->values; | ||||
|                     Py_ssize_t index = value_ptr - values->values; | ||||
|                     _PyDictValues_AddToInsertionOrder(values, index); | ||||
|                 } | ||||
|                 else { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kirill Podoprigora
						Kirill Podoprigora