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
Describe the bug
In asi_base.cpp, std::abs is used in ASIBase::SetTemperature to compare the current temperature difference to a floating point value like TEMP_THRESHOLD (0.25). std::abs takes (and returns) and int/long, so presumably std::fabs should be used here since you are comparing to a float.
This occurs in several places in the file (and from a quick grep many places in this repo).
To Reproduce
N/A
Expected behavior
N/A
Screenshots
N/A
Desktop (please complete the following information):
Describe the bug
In
asi_base.cpp
,std::abs
is used inASIBase::SetTemperature
to compare the current temperature difference to a floating point value likeTEMP_THRESHOLD
(0.25).std::abs
takes (and returns) and int/long, so presumablystd::fabs
should be used here since you are comparing to a float.This occurs in several places in the file (and from a quick
grep
many places in this repo).To Reproduce
N/A
Expected behavior
N/A
Screenshots
N/A
Desktop (please complete the following information):
Log Files
Make sure to enable logging and include log files https://indilib.org/support/logs-submission.html
The text was updated successfully, but these errors were encountered: