To: vim_dev@googlegroups.com Subject: Patch 8.2.0814 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0814 Problem: Clang warning for implicit conversion. Solution: Add type cast. (Dominique Pelle, closes #6124) Files: src/evalfunc.c *** ../vim-8.2.0813/src/evalfunc.c 2020-05-22 13:09:55.320226061 +0200 --- src/evalfunc.c 2020-05-23 19:22:12.073897600 +0200 *************** *** 2603,2611 **** if (get_float_arg(argvars, &f) == OK) { ! if (f <= -VARNUM_MAX + DBL_EPSILON) rettv->vval.v_number = -VARNUM_MAX; ! else if (f >= VARNUM_MAX - DBL_EPSILON) rettv->vval.v_number = VARNUM_MAX; else rettv->vval.v_number = (varnumber_T)f; --- 2603,2611 ---- if (get_float_arg(argvars, &f) == OK) { ! if (f <= (float_T)-VARNUM_MAX + DBL_EPSILON) rettv->vval.v_number = -VARNUM_MAX; ! else if (f >= (float_T)VARNUM_MAX - DBL_EPSILON) rettv->vval.v_number = VARNUM_MAX; else rettv->vval.v_number = (varnumber_T)f; *** ../vim-8.2.0813/src/version.c 2020-05-22 22:06:02.165271263 +0200 --- src/version.c 2020-05-23 19:26:05.032578627 +0200 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 814, /**/ -- Apathy Error: Don't bother striking any key. /// 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 ///