Karsten Hopp 51f6af
To: vim_dev@googlegroups.com
Karsten Hopp 51f6af
Subject: Patch 7.3.778
Karsten Hopp 51f6af
Fcc: outbox
Karsten Hopp 51f6af
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 51f6af
Mime-Version: 1.0
Karsten Hopp 51f6af
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 51f6af
Content-Transfer-Encoding: 8bit
Karsten Hopp 51f6af
------------
Karsten Hopp 51f6af
Karsten Hopp 51f6af
Patch 7.3.778
Karsten Hopp 51f6af
Problem:    Compiler error for adding up two pointers. (Titov Anatoly)
Karsten Hopp 51f6af
Solution:   Add a type cast. (Ken Takata)
Karsten Hopp 51f6af
Files:	    src/mbyte.c
Karsten Hopp 51f6af
Karsten Hopp 51f6af
Karsten Hopp 51f6af
*** ../vim-7.3.777/src/mbyte.c	2013-01-19 14:01:57.000000000 +0100
Karsten Hopp 51f6af
--- src/mbyte.c	2013-01-23 16:18:02.000000000 +0100
Karsten Hopp 51f6af
***************
Karsten Hopp 51f6af
*** 4325,4331 ****
Karsten Hopp 51f6af
  	{
Karsten Hopp 51f6af
  	    if (IMAGE_SNAP_BY_ORDINAL(pINT->u1.Ordinal))
Karsten Hopp 51f6af
  		continue;
Karsten Hopp 51f6af
! 	    pImpName = (PIMAGE_IMPORT_BY_NAME)(pImage + pINT->u1.AddressOfData);
Karsten Hopp 51f6af
  	    if (strcmp(pImpName->Name, funcname) == 0)
Karsten Hopp 51f6af
  		return (void *)pIAT->u1.Function;
Karsten Hopp 51f6af
  	}
Karsten Hopp 51f6af
--- 4325,4332 ----
Karsten Hopp 51f6af
  	{
Karsten Hopp 51f6af
  	    if (IMAGE_SNAP_BY_ORDINAL(pINT->u1.Ordinal))
Karsten Hopp 51f6af
  		continue;
Karsten Hopp 51f6af
! 	    pImpName = (PIMAGE_IMPORT_BY_NAME)(pImage
Karsten Hopp 51f6af
! 					+ (UINT_PTR)(pINT->u1.AddressOfData));
Karsten Hopp 51f6af
  	    if (strcmp(pImpName->Name, funcname) == 0)
Karsten Hopp 51f6af
  		return (void *)pIAT->u1.Function;
Karsten Hopp 51f6af
  	}
Karsten Hopp 51f6af
*** ../vim-7.3.777/src/version.c	2013-01-23 16:00:05.000000000 +0100
Karsten Hopp 51f6af
--- src/version.c	2013-01-23 16:18:40.000000000 +0100
Karsten Hopp 51f6af
***************
Karsten Hopp 51f6af
*** 727,728 ****
Karsten Hopp 51f6af
--- 727,730 ----
Karsten Hopp 51f6af
  {   /* Add new patch number below this line */
Karsten Hopp 51f6af
+ /**/
Karsten Hopp 51f6af
+     778,
Karsten Hopp 51f6af
  /**/
Karsten Hopp 51f6af
Karsten Hopp 51f6af
-- 
Karsten Hopp 51f6af
'I generally avoid temptation unless I can't resist it."
Karsten Hopp 51f6af
		-- Mae West
Karsten Hopp 51f6af
Karsten Hopp 51f6af
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 51f6af
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 51f6af
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 51f6af
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///