summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index c56d569ad..408bb99c5 100644
--- a/dive.h
+++ b/dive.h
@@ -20,7 +20,7 @@
(void) (&_max1 == &_max2); \
_max1 > _max2 ? _max1 : _max2; })
-#define IS_FP_SAME(_a,_b) (abs((_a) - (_b)) < 0.000001)
+#define IS_FP_SAME(_a,_b) (abs((_a) - (_b)) < 0.000001 * MAX(abs(_a), abs(_b)))
#include <libxml/tree.h>
#include <libxslt/transform.h>