Skip to content

Commit 98500fd

Browse files
committed
patch 8.0.0067
Problem: VMS has a problem with infinity. Solution: Avoid an overflow. (Zoltan Arpadffy)
1 parent 4a08b0d commit 98500fd

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/json.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616

1717
#include "vim.h"
1818

19-
#ifdef VAX
20-
# undef FEAT_FLOAT // VAX does not handle well the Infinities
21-
#endif
22-
2319
#if defined(FEAT_EVAL) || defined(PROTO)
2420

2521
static int json_encode_item(garray_T *gap, typval_T *val, int copyID, int options);

src/macros.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,11 @@
345345
# endif
346346
# if !defined(INFINITY)
347347
# if defined(DBL_MAX)
348-
# define INFINITY (DBL_MAX+DBL_MAX)
348+
# ifdef VMS
349+
# define INFINITY DBL_MAX
350+
# else
351+
# define INFINITY (DBL_MAX+DBL_MAX)
352+
# endif
349353
# else
350354
# define INFINITY (1.0 / 0.0)
351355
# endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
67,
767769
/**/
768770
66,
769771
/**/

0 commit comments

Comments
 (0)