summaryrefslogtreecommitdiffstats
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-11-06 14:17:16 +0100
committerBram Moolenaar <Bram@vim.org>2016-11-06 14:17:16 +0100
commit98500fdc6119eb5f02d7a52ab6ffcac3085181be (patch)
treee48f9e1c38cde2e2b163f584707bdf5408b7436e /src/macros.h
parent4a08b0dc4dd70334056fc1bf069b5e938f2ed7d5 (diff)
patch 8.0.0067v8.0.0067
Problem: VMS has a problem with infinity. Solution: Avoid an overflow. (Zoltan Arpadffy)
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/macros.h b/src/macros.h
index 5920b5dc7b..faa8ccc9c5 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -345,7 +345,11 @@
# endif
# if !defined(INFINITY)
# if defined(DBL_MAX)
-# define INFINITY (DBL_MAX+DBL_MAX)
+# ifdef VMS
+# define INFINITY DBL_MAX
+# else
+# define INFINITY (DBL_MAX+DBL_MAX)
+# endif
# else
# define INFINITY (1.0 / 0.0)
# endif