mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fix a couple of compiler warnings. (GH-28677)
This commit is contained in:
		
							parent
							
								
									9eed75fde2
								
							
						
					
					
						commit
						cd760ceb67
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -3666,7 +3666,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr | ||||||
|             assert(PyDict_CheckExact((PyObject *)dict)); |             assert(PyDict_CheckExact((PyObject *)dict)); | ||||||
|             PyObject *name = GETITEM(names, cache0->original_oparg); |             PyObject *name = GETITEM(names, cache0->original_oparg); | ||||||
|             uint32_t hint = cache1->dk_version_or_hint; |             uint32_t hint = cache1->dk_version_or_hint; | ||||||
|             DEOPT_IF(hint >= dict->ma_keys->dk_nentries, LOAD_ATTR); |             DEOPT_IF(hint >= (size_t)dict->ma_keys->dk_nentries, LOAD_ATTR); | ||||||
|             PyDictKeyEntry *ep = DK_ENTRIES(dict->ma_keys) + hint; |             PyDictKeyEntry *ep = DK_ENTRIES(dict->ma_keys) + hint; | ||||||
|             DEOPT_IF(ep->me_key != name, LOAD_ATTR); |             DEOPT_IF(ep->me_key != name, LOAD_ATTR); | ||||||
|             res = ep->me_value; |             res = ep->me_value; | ||||||
|  | @ -3774,7 +3774,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr | ||||||
|             assert(PyDict_CheckExact((PyObject *)dict)); |             assert(PyDict_CheckExact((PyObject *)dict)); | ||||||
|             PyObject *name = GETITEM(names, cache0->original_oparg); |             PyObject *name = GETITEM(names, cache0->original_oparg); | ||||||
|             uint32_t hint = cache1->dk_version_or_hint; |             uint32_t hint = cache1->dk_version_or_hint; | ||||||
|             DEOPT_IF(hint >= dict->ma_keys->dk_nentries, STORE_ATTR); |             DEOPT_IF(hint >= (size_t)dict->ma_keys->dk_nentries, STORE_ATTR); | ||||||
|             PyDictKeyEntry *ep = DK_ENTRIES(dict->ma_keys) + hint; |             PyDictKeyEntry *ep = DK_ENTRIES(dict->ma_keys) + hint; | ||||||
|             DEOPT_IF(ep->me_key != name, STORE_ATTR); |             DEOPT_IF(ep->me_key != name, STORE_ATTR); | ||||||
|             PyObject *old_value = ep->me_value; |             PyObject *old_value = ep->me_value; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mark Shannon
						Mark Shannon