[FL-2811] Fix PVS-Studio warnings (#2142)
Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: gornekich <n.gorbadey@gmail.com>
This commit is contained in:
8
lib/toolbox/float_tools.c
Normal file
8
lib/toolbox/float_tools.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "float_tools.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
|
||||
bool float_is_equal(float a, float b) {
|
||||
return fabsf(a - b) <= FLT_EPSILON * fmaxf(fabsf(a), fabsf(b));
|
||||
}
|
Reference in New Issue
Block a user