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
The float variable sum_size is compared for equality against 0 with the == operand
--> this could have an impact in that these float comparisons could fail (even if they should not) and req_prob would be calculated as potentially really large in absolute value (division by almost ±zero value of sum_size)
--> https://stackoverflow.com/questions/4548004/how-to-correctly-and-standardly-compare-floats
--> suggested fix: replace condition in line 256 with ZRO(sum_size)
The text was updated successfully, but these errors were encountered:
Use macro `ZRO` instead of `== 0` to check whether the float variable `sum_size` is zero
- close#334
- this commit does not change the testing output on my local computer (this condition is never triggered in the test run)
In function
_res_part_extra
:The float variable
sum_size
is compared for equality against 0 with the==
operand--> this could have an impact in that these float comparisons could fail (even if they should not) and
req_prob
would be calculated as potentially really large in absolute value (division by almost ±zero value ofsum_size
)--> https://stackoverflow.com/questions/4548004/how-to-correctly-and-standardly-compare-floats
--> suggested fix: replace condition in line 256 with
ZRO(sum_size)
The text was updated successfully, but these errors were encountered: