diff options
author | Joost Peters | 2009-08-02 21:44:21 +0000 |
---|---|---|
committer | Joost Peters | 2009-08-02 21:44:21 +0000 |
commit | 0ef0365db553f7b972acc2c06f56ae8b2c121676 (patch) | |
tree | 450c14eb113eead11be344253957e802aa247e6d /engines/tinsel | |
parent | 7cf43b9ddaa0f64a3844568d8cf9b19f46b6b627 (diff) | |
download | scummvm-rg350-0ef0365db553f7b972acc2c06f56ae8b2c121676.tar.gz scummvm-rg350-0ef0365db553f7b972acc2c06f56ae8b2c121676.tar.bz2 scummvm-rg350-0ef0365db553f7b972acc2c06f56ae8b2c121676.zip |
Make MemoryReAlloc() 64-bit alignment safe
svn-id: r43013
Diffstat (limited to 'engines/tinsel')
-rw-r--r-- | engines/tinsel/heapmem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tinsel/heapmem.cpp b/engines/tinsel/heapmem.cpp index 9b4447509e..5db2918d2f 100644 --- a/engines/tinsel/heapmem.cpp +++ b/engines/tinsel/heapmem.cpp @@ -522,7 +522,7 @@ MEM_NODE *MemoryReAlloc(MEM_NODE *pMemNode, long size, int flags) { 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); |