To: vim_dev@googlegroups.com Subject: Patch 8.0.0067 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.0067 Problem: VMS has a problem with infinity. Solution: Avoid an overflow. (Zoltan Arpadffy) Files: src/json.c, src/macros.h *** ../vim-8.0.0066/src/json.c 2016-11-04 20:35:27.348946021 +0100 --- src/json.c 2016-11-06 14:14:03.760136140 +0100 *************** *** 16,25 **** #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); --- 16,21 ---- *** ../vim-8.0.0066/src/macros.h 2016-11-04 20:35:27.348946021 +0100 --- src/macros.h 2016-11-06 14:15:05.207758686 +0100 *************** *** 345,351 **** # endif # if !defined(INFINITY) # if defined(DBL_MAX) ! # define INFINITY (DBL_MAX+DBL_MAX) # else # define INFINITY (1.0 / 0.0) # endif --- 345,355 ---- # endif # if !defined(INFINITY) # if defined(DBL_MAX) ! # ifdef VMS ! # define INFINITY DBL_MAX ! # else ! # define INFINITY (DBL_MAX+DBL_MAX) ! # endif # else # define INFINITY (1.0 / 0.0) # endif *** ../vim-8.0.0066/src/version.c 2016-11-05 21:55:09.844208420 +0100 --- src/version.c 2016-11-06 14:13:30.924337877 +0100 *************** *** 766,767 **** --- 766,769 ---- { /* Add new patch number below this line */ + /**/ + 67, /**/ -- An alien life briefly visits earth. Just before departing it leaves a message in the dust on the back of a white van. The world is shocked and wants to know what it means. After months of studies the worlds best linguistic scientists are able to decipher the message: "Wash me!". /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///