We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca6a60e commit 179e534Copy full SHA for 179e534
pythoncapi_compat.h
@@ -37,7 +37,7 @@ extern "C" {
37
# define PYCAPI_COMPAT_CAST(TYPE, EXPR) reinterpret_cast<TYPE>(EXPR)
38
# define PYCAPI_COMPAT_NULL nullptr
39
#else
40
-# define PYCAPI_COMPAT_CAST(TYPE, EXPR) (TYPE)(EXPR)
+# define PYCAPI_COMPAT_CAST(TYPE, EXPR) ((TYPE)(EXPR))
41
# define PYCAPI_COMPAT_NULL NULL
42
#endif
43
@@ -200,7 +200,7 @@ PYCAPI_COMPAT_STATIC_INLINE(PyFrameObject*)
200
_PyFrame_GetBackBorrow(PyFrameObject *frame)
201
{
202
return PYCAPI_COMPAT_CAST(PyFrameObject *,
203
- _Py_XStealRef(PyFrame_GetBack(frame)));
+ _Py_XStealRef(PyFrame_GetBack(frame)));
204
}
205
206
0 commit comments