diff src/macros.h @ 10344:e70ff5756201 v8.0.0067

commit https://github.com/vim/vim/commit/98500fdc6119eb5f02d7a52ab6ffcac3085181be Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 6 14:17:16 2016 +0100 patch 8.0.0067 Problem: VMS has a problem with infinity. Solution: Avoid an overflow. (Zoltan Arpadffy)
author Christian Brabandt <cb@256bit.org>
date Sun, 06 Nov 2016 14:30:04 +0100
parents 299f1669c20e
children 778c10516955
line wrap: on
line diff
--- 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