Commit 4dd225e
authored
Do an explicit cast to fix the C++ compiler warning:
In file included from Include/internal/pycore_object.h:13,
from Include/internal/pycore_cell.h:5,
from extension.cpp:29:
Include/internal/pycore_interpframe.h: In function 'PyFrameObject*
_PyFrame_GetFrameObject(_PyInterpreterFrame*)':
Include/internal/pycore_pyatomic_ft_wrappers.h:33:32: error:
invalid conversion from 'void*' to 'PyFrameObject*' {aka '_frame*'}
[-fpermissive]
33 | _Py_atomic_load_ptr_acquire(&value)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| |
| void*
Include/internal/pycore_interpframe.h:348:26: note: in expansion of
macro 'FT_ATOMIC_LOAD_PTR_ACQUIRE'
348 | PyFrameObject *res = FT_ATOMIC_LOAD_PTR_ACQUIRE(frame->frame_obj);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 parent e13ecae commit 4dd225e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
0 commit comments