You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As long is only at least 32 bits, and I am using a 64 bit system, this casting to long is going to not allow one to retrieve the value of the long because the ptr address will be a bit random, right?
Instead return a long*?
The text was updated successfully, but these errors were encountered:
OK true.
But then I don't understand why I still don't get the return value of my plugin and just 1 instead of 42.
andresailer
changed the title
PluginFactoryBase::make_return problem with longs and 64 bit ptrs
PluginFactoryBase::make_return problem with longs
Oct 29, 2021
Testing with the plugins in DD4hep, I get the correct result value out of the plugins. Doing this in key4hep/k4ActsTracking#3 which also includes Gaudi (maybe related) I always get back 1,
DD4hep/DDCore/include/DD4hep/Plugins.h
Lines 145 to 148 in bec0603
As
long
is only at least 32 bits, and I am using a 64 bit system, this casting tolong
is going to not allow one to retrieve the value of thelong
because the ptr address will be a bit random, right?Instead return a
long*
?The text was updated successfully, but these errors were encountered: