[Vm-dev] [commit][2980] ELiminate a couple of compiler warnings in the win32 build.

commits at squeakvm.org commits at squeakvm.org
Wed Jun 11 14:02:34 UTC 2014


Revision: 2980
Author:   eliot
Date:     2014-06-11 07:02:34 -0700 (Wed, 11 Jun 2014)
Log Message:
-----------
ELiminate a couple of compiler warnings in the win32 build.

Modified Paths:
--------------
    branches/Cog/platforms/win32/vm/sqWin32Alloc.c

Property Changed:
----------------
    branches/Cog/platforms/Cross/vm/sqSCCSVersion.h


Property changes on: branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
___________________________________________________________________
Modified: checkindate
   - Tue Jun 10 15:58:33 PDT 2014
   + Wed Jun 11 07:02:13 PDT 2014

Modified: branches/Cog/platforms/win32/vm/sqWin32Alloc.c
===================================================================
--- branches/Cog/platforms/win32/vm/sqWin32Alloc.c	2014-06-11 13:56:02 UTC (rev 2979)
+++ branches/Cog/platforms/win32/vm/sqWin32Alloc.c	2014-06-11 14:02:34 UTC (rev 2980)
@@ -187,7 +187,7 @@
 {
 	DWORD previous;
 
-	if (!VirtualProtect(startAddr,
+	if (!VirtualProtect((void *)startAddr,
 						endAddr - startAddr + 1,
 						PAGE_EXECUTE_READWRITE,
 						&previous))
@@ -199,7 +199,7 @@
 {
 	DWORD previous;
 
-	if (!VirtualProtect(startAddr,
+	if (!VirtualProtect((void *)startAddr,
 						endAddr - startAddr + 1,
 						PAGE_READWRITE,
 						&previous))



More information about the Vm-dev mailing list