spchcat icon indicating copy to clipboard operation
spchcat copied to clipboard

Use float literals for `TEST_FLTEQ`

Open msbit opened this issue 3 years ago • 0 comments

When using the TEST_FLTEQ macro, pass float literals for the comparision argument, to avoid errors of the form:

error: absolute value function 'fabsf' given an argument of
type 'double' but has parameter of type 'float' which may cause
truncation of value [-Werror,-Wabsolute-value]

msbit avatar Jul 01 '22 04:07 msbit