Karsten Hopp a23bd4
To: vim_dev@googlegroups.com
Karsten Hopp a23bd4
Subject: Patch 7.3.806
Karsten Hopp a23bd4
Fcc: outbox
Karsten Hopp a23bd4
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp a23bd4
Mime-Version: 1.0
Karsten Hopp a23bd4
Content-Type: text/plain; charset=UTF-8
Karsten Hopp a23bd4
Content-Transfer-Encoding: 8bit
Karsten Hopp a23bd4
------------
Karsten Hopp a23bd4
Karsten Hopp a23bd4
Patch 7.3.806
Karsten Hopp a23bd4
Problem:    Compiler warnings in Perl code when building with Visual studio
Karsten Hopp a23bd4
	    2012. (skeept)
Karsten Hopp a23bd4
Solution:   Add type casts. (Christian Brabandt, 2013 Jan 30)
Karsten Hopp a23bd4
Files:	    src/if_perl.xs
Karsten Hopp a23bd4
Karsten Hopp a23bd4
Karsten Hopp a23bd4
*** ../vim-7.3.805/src/if_perl.xs	2012-09-21 12:50:44.000000000 +0200
Karsten Hopp a23bd4
--- src/if_perl.xs	2013-02-06 19:55:12.000000000 +0100
Karsten Hopp a23bd4
***************
Karsten Hopp a23bd4
*** 1048,1054 ****
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
  	    SV *sv = ST(i);
Karsten Hopp a23bd4
  	    if (SvIOK(sv))
Karsten Hopp a23bd4
! 		b = SvIV(ST(i));
Karsten Hopp a23bd4
  	    else
Karsten Hopp a23bd4
  	    {
Karsten Hopp a23bd4
  		char_u *pat;
Karsten Hopp a23bd4
--- 1048,1054 ----
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
  	    SV *sv = ST(i);
Karsten Hopp a23bd4
  	    if (SvIOK(sv))
Karsten Hopp a23bd4
! 		b = (int) SvIV(ST(i));
Karsten Hopp a23bd4
  	    else
Karsten Hopp a23bd4
  	    {
Karsten Hopp a23bd4
  		char_u *pat;
Karsten Hopp a23bd4
***************
Karsten Hopp a23bd4
*** 1091,1097 ****
Karsten Hopp a23bd4
      {
Karsten Hopp a23bd4
  	for (i = 0; i < items; i++)
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
! 	    w = SvIV(ST(i));
Karsten Hopp a23bd4
  	    vimwin = win_find_nr(w);
Karsten Hopp a23bd4
  	    if (vimwin)
Karsten Hopp a23bd4
  		XPUSHs(newWINrv(newSV(0), vimwin));
Karsten Hopp a23bd4
--- 1091,1097 ----
Karsten Hopp a23bd4
      {
Karsten Hopp a23bd4
  	for (i = 0; i < items; i++)
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
! 	    w = (int) SvIV(ST(i));
Karsten Hopp a23bd4
  	    vimwin = win_find_nr(w);
Karsten Hopp a23bd4
  	    if (vimwin)
Karsten Hopp a23bd4
  		XPUSHs(newWINrv(newSV(0), vimwin));
Karsten Hopp a23bd4
***************
Karsten Hopp a23bd4
*** 1154,1161 ****
Karsten Hopp a23bd4
  
Karsten Hopp a23bd4
        if (!win_valid(win))
Karsten Hopp a23bd4
  	  win = curwin;
Karsten Hopp a23bd4
!       lnum = SvIV(ST(1));
Karsten Hopp a23bd4
!       col = SvIV(ST(2));
Karsten Hopp a23bd4
        win->w_cursor.lnum = lnum;
Karsten Hopp a23bd4
        win->w_cursor.col = col;
Karsten Hopp a23bd4
        check_cursor();		    /* put cursor on an existing line */
Karsten Hopp a23bd4
--- 1154,1161 ----
Karsten Hopp a23bd4
  
Karsten Hopp a23bd4
        if (!win_valid(win))
Karsten Hopp a23bd4
  	  win = curwin;
Karsten Hopp a23bd4
!       lnum = (int) SvIV(ST(1));
Karsten Hopp a23bd4
!       col = (int) SvIV(ST(2));
Karsten Hopp a23bd4
        win->w_cursor.lnum = lnum;
Karsten Hopp a23bd4
        win->w_cursor.col = col;
Karsten Hopp a23bd4
        check_cursor();		    /* put cursor on an existing line */
Karsten Hopp a23bd4
***************
Karsten Hopp a23bd4
*** 1216,1222 ****
Karsten Hopp a23bd4
      {
Karsten Hopp a23bd4
  	for (i = 1; i < items; i++)
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
! 	    lnum = SvIV(ST(i));
Karsten Hopp a23bd4
  	    if (lnum > 0 && lnum <= vimbuf->b_ml.ml_line_count)
Karsten Hopp a23bd4
  	    {
Karsten Hopp a23bd4
  		line = ml_get_buf(vimbuf, lnum, FALSE);
Karsten Hopp a23bd4
--- 1216,1222 ----
Karsten Hopp a23bd4
      {
Karsten Hopp a23bd4
  	for (i = 1; i < items; i++)
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
! 	    lnum = (long) SvIV(ST(i));
Karsten Hopp a23bd4
  	    if (lnum > 0 && lnum <= vimbuf->b_ml.ml_line_count)
Karsten Hopp a23bd4
  	    {
Karsten Hopp a23bd4
  		line = ml_get_buf(vimbuf, lnum, FALSE);
Karsten Hopp a23bd4
***************
Karsten Hopp a23bd4
*** 1239,1245 ****
Karsten Hopp a23bd4
  	if (items < 3)
Karsten Hopp a23bd4
  	    croak("Usage: VIBUF::Set(vimbuf, lnum, @lines)");
Karsten Hopp a23bd4
  
Karsten Hopp a23bd4
! 	lnum = SvIV(ST(1));
Karsten Hopp a23bd4
  	for(i = 2; i < items; i++, lnum++)
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
  	    line = SvPV(ST(i),PL_na);
Karsten Hopp a23bd4
--- 1239,1245 ----
Karsten Hopp a23bd4
  	if (items < 3)
Karsten Hopp a23bd4
  	    croak("Usage: VIBUF::Set(vimbuf, lnum, @lines)");
Karsten Hopp a23bd4
  
Karsten Hopp a23bd4
! 	lnum = (long) SvIV(ST(1));
Karsten Hopp a23bd4
  	for(i = 2; i < items; i++, lnum++)
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
  	    line = SvPV(ST(i),PL_na);
Karsten Hopp a23bd4
***************
Karsten Hopp a23bd4
*** 1274,1286 ****
Karsten Hopp a23bd4
      {
Karsten Hopp a23bd4
  	if (items == 2)
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
! 	    lnum = SvIV(ST(1));
Karsten Hopp a23bd4
  	    count = 1;
Karsten Hopp a23bd4
  	}
Karsten Hopp a23bd4
  	else if (items == 3)
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
! 	    lnum = SvIV(ST(1));
Karsten Hopp a23bd4
! 	    count = 1 + SvIV(ST(2)) - lnum;
Karsten Hopp a23bd4
  	    if (count == 0)
Karsten Hopp a23bd4
  		count = 1;
Karsten Hopp a23bd4
  	    if (count < 0)
Karsten Hopp a23bd4
--- 1274,1286 ----
Karsten Hopp a23bd4
      {
Karsten Hopp a23bd4
  	if (items == 2)
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
! 	    lnum = (long) SvIV(ST(1));
Karsten Hopp a23bd4
  	    count = 1;
Karsten Hopp a23bd4
  	}
Karsten Hopp a23bd4
  	else if (items == 3)
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
! 	    lnum = (long) SvIV(ST(1));
Karsten Hopp a23bd4
! 	    count = (long) 1 + SvIV(ST(2)) - lnum;
Karsten Hopp a23bd4
  	    if (count == 0)
Karsten Hopp a23bd4
  		count = 1;
Karsten Hopp a23bd4
  	    if (count < 0)
Karsten Hopp a23bd4
***************
Karsten Hopp a23bd4
*** 1331,1337 ****
Karsten Hopp a23bd4
  	if (items < 3)
Karsten Hopp a23bd4
  	    croak("Usage: VIBUF::Append(vimbuf, lnum, @lines)");
Karsten Hopp a23bd4
  
Karsten Hopp a23bd4
! 	lnum = SvIV(ST(1));
Karsten Hopp a23bd4
  	for (i = 2; i < items; i++, lnum++)
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
  	    line = SvPV(ST(i),PL_na);
Karsten Hopp a23bd4
--- 1331,1337 ----
Karsten Hopp a23bd4
  	if (items < 3)
Karsten Hopp a23bd4
  	    croak("Usage: VIBUF::Append(vimbuf, lnum, @lines)");
Karsten Hopp a23bd4
  
Karsten Hopp a23bd4
! 	lnum = (long) SvIV(ST(1));
Karsten Hopp a23bd4
  	for (i = 2; i < items; i++, lnum++)
Karsten Hopp a23bd4
  	{
Karsten Hopp a23bd4
  	    line = SvPV(ST(i),PL_na);
Karsten Hopp a23bd4
*** ../vim-7.3.805/src/version.c	2013-02-06 19:49:38.000000000 +0100
Karsten Hopp a23bd4
--- src/version.c	2013-02-06 19:58:16.000000000 +0100
Karsten Hopp a23bd4
***************
Karsten Hopp a23bd4
*** 727,728 ****
Karsten Hopp a23bd4
--- 727,730 ----
Karsten Hopp a23bd4
  {   /* Add new patch number below this line */
Karsten Hopp a23bd4
+ /**/
Karsten Hopp a23bd4
+     806,
Karsten Hopp a23bd4
  /**/
Karsten Hopp a23bd4
Karsten Hopp a23bd4
-- 
Karsten Hopp a23bd4
BRIDGEKEEPER: What is your favorite colour?
Karsten Hopp a23bd4
LAUNCELOT:    Blue.
Karsten Hopp a23bd4
BRIDGEKEEPER: Right.  Off you go.
Karsten Hopp a23bd4
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp a23bd4
Karsten Hopp a23bd4
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp a23bd4
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp a23bd4
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp a23bd4
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///