[Scummvm-cvs-logs] SF.net SVN: scummvm:[35528] scummvm/trunk/engines/tinsel/heapmem.cpp
joostp at users.sourceforge.net
joostp at users.sourceforge.net
Wed Dec 24 17:13:09 CET 2008
Revision: 35528
http://scummvm.svn.sourceforge.net/scummvm/?rev=35528&view=rev
Author: joostp
Date: 2008-12-24 16:13:09 +0000 (Wed, 24 Dec 2008)
Log Message:
-----------
add comment for clarification
Modified Paths:
--------------
scummvm/trunk/engines/tinsel/heapmem.cpp
Modified: scummvm/trunk/engines/tinsel/heapmem.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/heapmem.cpp 2008-12-24 16:10:55 UTC (rev 35527)
+++ scummvm/trunk/engines/tinsel/heapmem.cpp 2008-12-24 16:13:09 UTC (rev 35528)
@@ -285,7 +285,7 @@
}
#ifdef SCUMM_NEED_ALIGNMENT
- size = (size + 3) & ~3;
+ size = (size + 3) & ~3; //round up to nearest multiple of 4, this ensures the addresses that are returned are 4-byte aligned as well.
#endif
while ((flags & DWM_NOALLOC) == 0 && bCompacted) {
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