mirror of
https://github.com/python/cpython.git
synced 2025-10-18 04:38:07 +00:00
bpo-39573: Use Py_TYPE() macro in Python and Include directories (GH-18391)
Replace direct access to PyObject.ob_type with Py_TYPE().
This commit is contained in:
parent
38aaaaac80
commit
a102ed7d2f
12 changed files with 39 additions and 39 deletions
|
@ -3988,7 +3988,7 @@ infer_type(expr_ty e)
|
|||
case FormattedValue_kind:
|
||||
return &PyUnicode_Type;
|
||||
case Constant_kind:
|
||||
return e->v.Constant.value->ob_type;
|
||||
return Py_TYPE(e->v.Constant.value);
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue