Closed ArashPartow closed 3 years ago
Just in case this was a bug (?), please check these lines:
/home/jlblanco/code/mrpt/libs/expr/include/mrpt/3rdparty/exprtk.hpp:1931:29: warning: declaration of ‘exponent’ shadows a previous local [-Wshadow]
const int exponent = static_cast<int>(-std::distance(curr, itr));
^~~~~~~~
/home/jlblanco/code/mrpt/libs/expr/include/mrpt/3rdparty/exprtk.hpp:1904:14: note: shadowed declaration is here
int exponent = 0;
^~~~~~~~
It's a different exponent. It's essentially the power to 10 the fractional part (which atm is in integer mode) needs to be multiplied with to make it the fractional part in the underlying type (double, float etc...).
I'll rename it so as to make it less confusing and so as not to trigger that diagnostic.
Thank-you for raising this issue.
ok, thanks for clarifying :+1:
All relevant unit tests passed, merging.
Thanks! :+1: