Permalink
Browse files

patch 8.0.0067

Problem:    VMS has a problem with infinity.
Solution:   Avoid an overflow. (Zoltan Arpadffy)
  • Loading branch information...
1 parent 4a08b0d commit 98500fdc6119eb5f02d7a52ab6ffcac3085181be @brammool brammool committed Nov 6, 2016
Showing with 7 additions and 5 deletions.
  1. +0 −4 src/json.c
  2. +5 −1 src/macros.h
  3. +2 −0 src/version.c
View
@@ -16,10 +16,6 @@
#include "vim.h"
-#ifdef VAX
-# undef FEAT_FLOAT // VAX does not handle well the Infinities
-#endif
-
#if defined(FEAT_EVAL) || defined(PROTO)
static int json_encode_item(garray_T *gap, typval_T *val, int copyID, int options);
View
@@ -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
View
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 67,
+/**/
66,
/**/
65,

0 comments on commit 98500fd

Please sign in to comment.