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