jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.190

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