Karsten Hopp b2d3fd
To: vim_dev@googlegroups.com
Karsten Hopp b2d3fd
Subject: Patch 7.4.190
Karsten Hopp b2d3fd
Fcc: outbox
Karsten Hopp b2d3fd
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp b2d3fd
Mime-Version: 1.0
Karsten Hopp b2d3fd
Content-Type: text/plain; charset=UTF-8
Karsten Hopp b2d3fd
Content-Transfer-Encoding: 8bit
Karsten Hopp b2d3fd
------------
Karsten Hopp b2d3fd
Karsten Hopp b2d3fd
Patch 7.4.190
Karsten Hopp b2d3fd
Problem:    Compiler warning for using %lld for off_t.
Karsten Hopp b2d3fd
Solution:   Add type cast.
Karsten Hopp b2d3fd
Files:      src/fileio.c
Karsten Hopp b2d3fd
Karsten Hopp b2d3fd
Karsten Hopp b2d3fd
*** ../vim-7.4.189/src/fileio.c	2014-02-23 22:52:33.368764715 +0100
Karsten Hopp b2d3fd
--- src/fileio.c	2014-02-23 22:31:00.824766773 +0100
Karsten Hopp b2d3fd
***************
Karsten Hopp b2d3fd
*** 5294,5300 ****
Karsten Hopp b2d3fd
      if (shortmess(SHM_LINES))
Karsten Hopp b2d3fd
  	sprintf((char *)p,
Karsten Hopp b2d3fd
  #ifdef LONG_LONG_OFF_T
Karsten Hopp b2d3fd
! 		"%ldL, %lldC", lnum, nchars
Karsten Hopp b2d3fd
  #else
Karsten Hopp b2d3fd
  		/* Explicit typecast avoids warning on Mac OS X 10.6 */
Karsten Hopp b2d3fd
  		"%ldL, %ldC", lnum, (long)nchars
Karsten Hopp b2d3fd
--- 5294,5300 ----
Karsten Hopp b2d3fd
      if (shortmess(SHM_LINES))
Karsten Hopp b2d3fd
  	sprintf((char *)p,
Karsten Hopp b2d3fd
  #ifdef LONG_LONG_OFF_T
Karsten Hopp b2d3fd
! 		"%ldL, %lldC", lnum, (long long)nchars
Karsten Hopp b2d3fd
  #else
Karsten Hopp b2d3fd
  		/* Explicit typecast avoids warning on Mac OS X 10.6 */
Karsten Hopp b2d3fd
  		"%ldL, %ldC", lnum, (long)nchars
Karsten Hopp b2d3fd
***************
Karsten Hopp b2d3fd
*** 5312,5318 ****
Karsten Hopp b2d3fd
  	else
Karsten Hopp b2d3fd
  	    sprintf((char *)p,
Karsten Hopp b2d3fd
  #ifdef LONG_LONG_OFF_T
Karsten Hopp b2d3fd
! 		    _("%lld characters"), nchars
Karsten Hopp b2d3fd
  #else
Karsten Hopp b2d3fd
  		    /* Explicit typecast avoids warning on Mac OS X 10.6 */
Karsten Hopp b2d3fd
  		    _("%ld characters"), (long)nchars
Karsten Hopp b2d3fd
--- 5312,5318 ----
Karsten Hopp b2d3fd
  	else
Karsten Hopp b2d3fd
  	    sprintf((char *)p,
Karsten Hopp b2d3fd
  #ifdef LONG_LONG_OFF_T
Karsten Hopp b2d3fd
! 		    _("%lld characters"), (long long)nchars
Karsten Hopp b2d3fd
  #else
Karsten Hopp b2d3fd
  		    /* Explicit typecast avoids warning on Mac OS X 10.6 */
Karsten Hopp b2d3fd
  		    _("%ld characters"), (long)nchars
Karsten Hopp b2d3fd
*** ../vim-7.4.189/src/version.c	2014-02-23 22:54:54.728764490 +0100
Karsten Hopp b2d3fd
--- src/version.c	2014-02-23 22:57:43.648764221 +0100
Karsten Hopp b2d3fd
***************
Karsten Hopp b2d3fd
*** 740,741 ****
Karsten Hopp b2d3fd
--- 740,743 ----
Karsten Hopp b2d3fd
  {   /* Add new patch number below this line */
Karsten Hopp b2d3fd
+ /**/
Karsten Hopp b2d3fd
+     190,
Karsten Hopp b2d3fd
  /**/
Karsten Hopp b2d3fd
Karsten Hopp b2d3fd
-- 
Karsten Hopp b2d3fd
Courtroom Quote #19:
Karsten Hopp b2d3fd
Q:  Doctor, how many autopsies have you performed on dead people?
Karsten Hopp b2d3fd
A:  All my autopsies have been performed on dead people.
Karsten Hopp b2d3fd
Karsten Hopp b2d3fd
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp b2d3fd
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp b2d3fd
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp b2d3fd
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///