Karsten Hopp b85d1b
To: vim-dev@vim.org
Karsten Hopp b85d1b
Subject: patch 7.1.034
Karsten Hopp b85d1b
Fcc: outbox
Karsten Hopp b85d1b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp b85d1b
Mime-Version: 1.0
Karsten Hopp b85d1b
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp b85d1b
Content-Transfer-Encoding: 8bit
Karsten Hopp b85d1b
------------
Karsten Hopp b85d1b
Karsten Hopp b85d1b
Patch 7.1.034
Karsten Hopp b85d1b
Problem:    Win64: A few compiler warnings.  Problems with optimizer.
Karsten Hopp b85d1b
Solution:   Use int instead of size_t.  Disable the optimizer in one function.
Karsten Hopp b85d1b
	    (George V.  Reilly)
Karsten Hopp b85d1b
Files:	    src/eval.c, src/spell.c
Karsten Hopp b85d1b
Karsten Hopp b85d1b
Karsten Hopp b85d1b
*** ../vim-7.1.033/src/eval.c	Tue Jul 17 16:31:15 2007
Karsten Hopp b85d1b
--- src/eval.c	Wed Jul 11 19:50:27 2007
Karsten Hopp b85d1b
***************
Karsten Hopp b85d1b
*** 992,1011 ****
Karsten Hopp b85d1b
      char_u	*value;
Karsten Hopp b85d1b
      int		value_len;
Karsten Hopp b85d1b
  {
Karsten Hopp b85d1b
!     size_t	len;
Karsten Hopp b85d1b
  
Karsten Hopp b85d1b
      if (redir_lval == NULL)
Karsten Hopp b85d1b
  	return;
Karsten Hopp b85d1b
  
Karsten Hopp b85d1b
      if (value_len == -1)
Karsten Hopp b85d1b
! 	len = STRLEN(value);	/* Append the entire string */
Karsten Hopp b85d1b
      else
Karsten Hopp b85d1b
! 	len = value_len;	/* Append only "value_len" characters */
Karsten Hopp b85d1b
  
Karsten Hopp b85d1b
!     if (ga_grow(&redir_ga, (int)len) == OK)
Karsten Hopp b85d1b
      {
Karsten Hopp b85d1b
  	mch_memmove((char *)redir_ga.ga_data + redir_ga.ga_len, value, len);
Karsten Hopp b85d1b
! 	redir_ga.ga_len += (int)len;
Karsten Hopp b85d1b
      }
Karsten Hopp b85d1b
      else
Karsten Hopp b85d1b
  	var_redir_stop();
Karsten Hopp b85d1b
--- 992,1011 ----
Karsten Hopp b85d1b
      char_u	*value;
Karsten Hopp b85d1b
      int		value_len;
Karsten Hopp b85d1b
  {
Karsten Hopp b85d1b
!     int		len;
Karsten Hopp b85d1b
  
Karsten Hopp b85d1b
      if (redir_lval == NULL)
Karsten Hopp b85d1b
  	return;
Karsten Hopp b85d1b
  
Karsten Hopp b85d1b
      if (value_len == -1)
Karsten Hopp b85d1b
! 	len = (int)STRLEN(value);	/* Append the entire string */
Karsten Hopp b85d1b
      else
Karsten Hopp b85d1b
! 	len = value_len;		/* Append only "value_len" characters */
Karsten Hopp b85d1b
  
Karsten Hopp b85d1b
!     if (ga_grow(&redir_ga, len) == OK)
Karsten Hopp b85d1b
      {
Karsten Hopp b85d1b
  	mch_memmove((char *)redir_ga.ga_data + redir_ga.ga_len, value, len);
Karsten Hopp b85d1b
! 	redir_ga.ga_len += len;
Karsten Hopp b85d1b
      }
Karsten Hopp b85d1b
      else
Karsten Hopp b85d1b
  	var_redir_stop();
Karsten Hopp b85d1b
*** ../vim-7.1.033/src/spell.c	Thu May 10 18:45:53 2007
Karsten Hopp b85d1b
--- src/spell.c	Sat Jul 14 17:17:52 2007
Karsten Hopp b85d1b
***************
Karsten Hopp b85d1b
*** 7829,7835 ****
Karsten Hopp b85d1b
  # if (_MSC_VER <= 1200)
Karsten Hopp b85d1b
  /* This line is required for VC6 without the service pack.  Also see the
Karsten Hopp b85d1b
   * matching #pragma below. */
Karsten Hopp b85d1b
! /* # pragma optimize("", off) */
Karsten Hopp b85d1b
  # endif
Karsten Hopp b85d1b
  #endif
Karsten Hopp b85d1b
  
Karsten Hopp b85d1b
--- 7829,7835 ----
Karsten Hopp b85d1b
  # if (_MSC_VER <= 1200)
Karsten Hopp b85d1b
  /* This line is required for VC6 without the service pack.  Also see the
Karsten Hopp b85d1b
   * matching #pragma below. */
Karsten Hopp b85d1b
!  #  pragma optimize("", off)
Karsten Hopp b85d1b
  # endif
Karsten Hopp b85d1b
  #endif
Karsten Hopp b85d1b
  
Karsten Hopp b85d1b
***************
Karsten Hopp b85d1b
*** 7859,7865 ****
Karsten Hopp b85d1b
  
Karsten Hopp b85d1b
  #ifdef _MSC_VER
Karsten Hopp b85d1b
  # if (_MSC_VER <= 1200)
Karsten Hopp b85d1b
! /* # pragma optimize("", on) */
Karsten Hopp b85d1b
  # endif
Karsten Hopp b85d1b
  #endif
Karsten Hopp b85d1b
  
Karsten Hopp b85d1b
--- 7859,7865 ----
Karsten Hopp b85d1b
  
Karsten Hopp b85d1b
  #ifdef _MSC_VER
Karsten Hopp b85d1b
  # if (_MSC_VER <= 1200)
Karsten Hopp b85d1b
!  #  pragma optimize("", on)
Karsten Hopp b85d1b
  # endif
Karsten Hopp b85d1b
  #endif
Karsten Hopp b85d1b
  
Karsten Hopp b85d1b
*** ../vim-7.1.033/src/version.c	Tue Jul 24 09:50:22 2007
Karsten Hopp b85d1b
--- src/version.c	Tue Jul 24 09:47:17 2007
Karsten Hopp b85d1b
***************
Karsten Hopp b85d1b
*** 668,669 ****
Karsten Hopp b85d1b
--- 668,671 ----
Karsten Hopp b85d1b
  {   /* Add new patch number below this line */
Karsten Hopp b85d1b
+ /**/
Karsten Hopp b85d1b
+     34,
Karsten Hopp b85d1b
  /**/
Karsten Hopp b85d1b
Karsten Hopp b85d1b
-- 
Karsten Hopp b85d1b
How To Keep A Healthy Level Of Insanity:
Karsten Hopp b85d1b
17. When the money comes out the ATM, scream "I won!, I won! 3rd
Karsten Hopp b85d1b
    time this week!!!!!"
Karsten Hopp b85d1b
Karsten Hopp b85d1b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp b85d1b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp b85d1b
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp b85d1b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///