summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-04 20:30:00 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-04 20:30:00 +0200
commit863e80b4451b5102b41bebf9ddca3a420de746fa (patch)
treeb7d40ecfa78b45b2fac1ba856028d8a40423f128 /src/macros.h
parent3e54569b17683318e0cb6693ab0024c2ad1e3e8f (diff)
downloadvim-863e80b4451b5102b41bebf9ddca3a420de746fa.zip
patch 8.0.0614: float2nr() is not exactly right
Problem: float2nr() is not exactly right. Solution: Make float2nr() more accurate. Turn test64 into a new style test. (Hirohito Higashi, closes #1688)
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h
index 8ebc8ceb8..d75d19072 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -364,6 +364,9 @@
# if !defined(NAN)
# define NAN (INFINITY-INFINITY)
# endif
+# if !defined(DBL_EPSILON)
+# define DBL_EPSILON 2.2204460492503131e-16
+# endif
# endif
#endif