[Scummvm-cvs-logs] SF.net SVN: scummvm:[43014] scummvm/branches/branch-1-0-0/engines/tinsel/ heapmem.cpp
joostp at users.sourceforge.net
joostp at users.sourceforge.net
Sun Aug 2 23:44:44 CEST 2009
Revision: 43014
http://scummvm.svn.sourceforge.net/scummvm/?rev=43014&view=rev
Author: joostp
Date: 2009-08-02 21:44:44 +0000 (Sun, 02 Aug 2009)
Log Message:
-----------
Make MemoryReAlloc() 64-bit alignment safe
Modified Paths:
--------------
scummvm/branches/branch-1-0-0/engines/tinsel/heapmem.cpp
Modified: scummvm/branches/branch-1-0-0/engines/tinsel/heapmem.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/tinsel/heapmem.cpp 2009-08-02 21:44:21 UTC (rev 43013)
+++ scummvm/branches/branch-1-0-0/engines/tinsel/heapmem.cpp 2009-08-02 21:44:44 UTC (rev 43014)
@@ -522,7 +522,7 @@
assert(flags & (DWM_FIXED | DWM_MOVEABLE));
// align the size to machine boundary requirements
- size = (size + sizeof(int) - 1) & ~(sizeof(int) - 1);
+ size = (size + sizeof(void *) - 1) & ~(sizeof(void *) - 1);
// validate the size
assert(size);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list