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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202005231730.04NHUgjE013008%40masaka.moolenaar.net.

Raspunde prin e-mail lui