Skip to content
Snippets Groups Projects
Commit 43d9b00b authored by Wim Lavrijsen's avatar Wim Lavrijsen
Browse files

force (long)(Int_t) cast for Int_t returns to squash higher order bits

parent 2a044fe3
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ Long_t PRCallFuncExecInt( CallFunc_t* func, void* self, Bool_t release_gil ) {
Long_t result;
if ( release_gil ) {
Py_BEGIN_ALLOW_THREADS
result = (Long_t)gInterpreter->CallFunc_ExecInt( func, self );
result = (Long_t)gInterpreter->CallFunc_ExecInt( func, self );
Py_END_ALLOW_THREADS
} else
result = (Long_t)gInterpreter->CallFunc_ExecInt( func, self );
......@@ -98,7 +98,7 @@ PyObject* PyROOT::TCharExecutor::Execute( CallFunc_t* func, void* self, Bool_t r
PyObject* PyROOT::TIntExecutor::Execute( CallFunc_t* func, void* self, Bool_t release_gil )
{
// execute <func> with argument <self>, construct python int return value
return PyInt_FromLong( (Long_t)PRCallFuncExecInt( func, self, release_gil ) );
return PyInt_FromLong( (Int_t)PRCallFuncExecInt( func, self, release_gil ) );
}
//____________________________________________________________________________
......
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