0
0
mirror of https://github.com/vim/vim.git synced 2025-10-18 07:54:29 -04:00

patch 8.0.0067

Problem:    VMS has a problem with infinity.
Solution:   Avoid an overflow. (Zoltan Arpadffy)
This commit is contained in:
Bram Moolenaar
2016-11-06 14:17:16 +01:00
parent 4a08b0dc4d
commit 98500fdc61
3 changed files with 7 additions and 5 deletions

View File

@@ -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 File

@@ -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 File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
67,
/**/
66,
/**/