mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	bpo-42099: Fix reference to ob_type in unionobject.c and ceval (GH-22829)
* Use Py_TYPE() rather than o->ob_type.
This commit is contained in:
		
							parent
							
								
									15acc4eaba
								
							
						
					
					
						commit
						0564aafb71
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -3193,7 +3193,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, PyFrameObject *f, int throwflag) | |||
| 
 | ||||
|                         descr = _PyType_Lookup(type, name); | ||||
|                         if (descr == NULL || | ||||
|                             descr->ob_type->tp_descr_get == NULL || | ||||
|                             Py_TYPE(descr)->tp_descr_get == NULL || | ||||
|                             !PyDescr_IsData(descr)) | ||||
|                         { | ||||
|                             dictptr = (PyObject **) ((char *)owner + type->tp_dictoffset); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neil Schemenauer
						Neil Schemenauer