From 475a7297471e07cd3a8eab76ac9f52086cc6f28d Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 31 Jul 2014 23:23:39 +0300 Subject: [PATCH] Fixed Z3 board alignment calculation. --- expansion.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/expansion.cpp b/expansion.cpp index 49ac9916..24782102 100644 --- a/expansion.cpp +++ b/expansion.cpp @@ -1238,6 +1238,10 @@ static bool mapped_malloc_dynamic (uae_u32 *currpsize, uae_u32 *changedpsize, ad uaecptr expansion_startaddress(uaecptr addr, uae_u32 size) { + if (!size) + return addr; + if (size < 16 * 1024 * 1024) + size = 16 * 1024 * 1024; if (!currprefs.jit_direct_compatible_memory) return (addr + size - 1) & ~(size - 1); return addr; -- 2.47.3