Skip to content
Snippets Groups Projects
Commit 6fa5da1e authored by Enric Tejedor Saavedra's avatar Enric Tejedor Saavedra Committed by Danilo Piparo
Browse files

[Exp PyROOT] Fix extraneous deref in Cppyy's AsCObject

The bug has been reported and fixed in upstream CPyCppyy.
parent d9c6dffe
No related branches found
No related tags found
No related merge requests found
......@@ -431,7 +431,7 @@ PyObject* AsCObject(PyObject* dummy, PyObject* args)
// Return object proxy as an opaque CObject.
void* addr = GetCPPInstanceAddress(dummy, args);
if (addr)
return CPyCppyy_PyCapsule_New((void*)(*(intptr_t*)addr), nullptr, nullptr);
return CPyCppyy_PyCapsule_New((void*)addr, nullptr, nullptr);
return nullptr;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment