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
This type difference is unlikely to produce problems, but may be problematic on systems where int and long are not type aliases for the same underlying integer value type.
To alleviate any possible comparison errors, the component _index and return value for _getcomp_index should have the same type -- either intorlong.
The text was updated successfully, but these errors were encountered:
As seen in the code generator, the property of each component representing its position along the instrument is
long
valuedMcCode/mcstas/src/cogen.c.in
Line 542 in c4c9421
The
_getcomp_index
function finds the component which has a user-provided name and returns anint
valued index.McCode/mcstas/src/cogen.c.in
Line 1032 in c4c9421
This type difference is unlikely to produce problems, but may be problematic on systems where
int
andlong
are not type aliases for the same underlying integer value type.To alleviate any possible comparison errors, the component
_index
and return value for_getcomp_index
should have the same type -- eitherint
orlong
.The text was updated successfully, but these errors were encountered: