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
In the fb tool, there are two uses of float, when double would be more appropriate. float is 32-bits and doubles are 64-bits, so on 64-bit computers it is always better to use double rather than float just for runtime speed reasons, unless there is a specific reason to use float (which does not exist in this case).
In linux/MacOS, there are no compiler warnings about this. But in Windows, there is a complaint(since you are losing some resolution by converting to a smaller storage size):
C:\projects\humlib\src\tool-fb.cpp(383): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data [C:\projects\humlib\build\humlib.vcxproj]
C:\projects\humlib\src\tool-fb.cpp(384): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data [C:\projects\humlib\build\humlib.vcxproj]
C:\projects\humlib\src\tool-fb.cpp(389): warning C4244: '=': conversion from 'double' to 'float', possible loss of data [C:\projects\humlib\build\humlib.vcxproj]
The text was updated successfully, but these errors were encountered:
For @WolfgangDrescher:
In the fb tool, there are two uses of
float
, whendouble
would be more appropriate.float
is 32-bits and doubles are64-bits
, so on 64-bit computers it is always better to usedouble
rather thanfloat
just for runtime speed reasons, unless there is a specific reason to usefloat
(which does not exist in this case).In linux/MacOS, there are no compiler warnings about this. But in Windows, there is a complaint(since you are losing some resolution by converting to a smaller storage size):
The text was updated successfully, but these errors were encountered: