diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-06-04 20:30:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-06-04 20:30:00 +0200 |
commit | 863e80b4451b5102b41bebf9ddca3a420de746fa (patch) | |
tree | b7d40ecfa78b45b2fac1ba856028d8a40423f128 /src/macros.h | |
parent | 3e54569b17683318e0cb6693ab0024c2ad1e3e8f (diff) | |
download | vim-git-863e80b4451b5102b41bebf9ddca3a420de746fa.tar.gz |
patch 8.0.0614: float2nr() is not exactly rightv8.0.0614
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.h | 3 |
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 |