Patch 7.4.2224
Problem:    Compiler warnings with older compiler and 64 bit numbers.
Solution:   Add "LL" to large values. (Mike Williams)
Files:      src/eval.c, src/evalfunc.c


*** ../vim-7.4.2223/src/eval.c  2016-08-14 16:07:44.717705432 +0200
--- src/eval.c  2016-08-17 21:46:57.953745759 +0200
***************
*** 4087,4097 ****
                    {
  #ifdef FEAT_NUM64
                        if (n1 == 0)
!                           n1 = -0x7fffffffffffffff - 1; /* similar to NaN */
                        else if (n1 < 0)
!                           n1 = -0x7fffffffffffffff;
                        else
!                           n1 = 0x7fffffffffffffff;
  #else
                        if (n1 == 0)
                            n1 = -0x7fffffffL - 1L;     /* similar to NaN */
--- 4087,4097 ----
                    {
  #ifdef FEAT_NUM64
                        if (n1 == 0)
!                           n1 = -0x7fffffffffffffffLL - 1; /* similar to NaN */
                        else if (n1 < 0)
!                           n1 = -0x7fffffffffffffffLL;
                        else
!                           n1 = 0x7fffffffffffffffLL;
  #else
                        if (n1 == 0)
                            n1 = -0x7fffffffL - 1L;     /* similar to NaN */
*** ../vim-7.4.2223/src/evalfunc.c      2016-08-17 21:31:54.437870436 +0200
--- src/evalfunc.c      2016-08-17 21:46:57.957745723 +0200
***************
*** 3291,3300 ****
      if (get_float_arg(argvars, &f) == OK)
      {
  # ifdef FEAT_NUM64
!       if (f < -0x7fffffffffffffff)
!           rettv->vval.v_number = -0x7fffffffffffffff;
!       else if (f > 0x7fffffffffffffff)
!           rettv->vval.v_number = 0x7fffffffffffffff;
        else
            rettv->vval.v_number = (varnumber_T)f;
  # else
--- 3291,3300 ----
      if (get_float_arg(argvars, &f) == OK)
      {
  # ifdef FEAT_NUM64
!       if (f < -0x7fffffffffffffffLL)
!           rettv->vval.v_number = -0x7fffffffffffffffLL;
!       else if (f > 0x7fffffffffffffffLL)
!           rettv->vval.v_number = 0x7fffffffffffffffLL;
        else
            rettv->vval.v_number = (varnumber_T)f;
  # else
*** ../vim-7.4.2223/src/version.c       2016-08-17 21:31:54.445870364 +0200
--- src/version.c       2016-08-17 21:47:49.313281276 +0200
***************
*** 765,766 ****
--- 765,768 ----
  {   /* Add new patch number below this line */
+ /**/
+     2224,
  /**/

-- 
Now it is such a bizarrely improbable coincidence that anything as
mind-bogglingly useful as the Babel fish could have evolved purely by chance
that some thinkers have chosen to see it as a final and clinching proof of the
NON-existence of God.
The argument goes something like this: 'I refuse to prove that I exist,' says
God, 'for proof denies faith, and without faith I am nothing.'
'But,' says Man, 'the Babel fish is a dead giveaway, isn't it?  It could not
have evolved by chance.  It proves you exist, and so therefore, by your own
arguments, you don't.  QED.'
'Oh dear,' says God, 'I hadn't thought of that,' and promptly vanishes in a
puff of logic.
'Oh, that was easy,' says Man, and for an encore goes on to prove that black
is white and gets himself killed on the next pedestrian crossing.
                -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- b...@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    ///

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui