diff --git a/src/cpu/core_dynrec/cache.h b/src/cpu/core_dynrec/cache.h index cb46274b..e1a3d88c 100644 --- a/src/cpu/core_dynrec/cache.h +++ b/src/cpu/core_dynrec/cache.h @@ -596,7 +596,7 @@ static void cache_init(bool enable) { if(!cache_code_start_ptr) E_Exit("Allocating dynamic cache failed"); // align the cache at a page boundary - cache_code=(Bit8u*)(((long)cache_code_start_ptr + PAGESIZE_TEMP-1) & ~(PAGESIZE_TEMP-1)); //MEM LEAK. store old pointer if you want to free it. + cache_code=(Bit8u*)(((Bitu)cache_code_start_ptr + PAGESIZE_TEMP-1) & ~(PAGESIZE_TEMP-1));//Bitu is same size as a pointer. cache_code_link_blocks=cache_code; cache_code=cache_code+PAGESIZE_TEMP;