diff runtime/fixed_alloc.h @ 63:04baa003de5a

Merged latest changes with better C branch
author Mike Pavone <pavone@retrodev.com>
date Wed, 05 May 2010 22:12:23 -0400
parents a24eb366195c
children d1569087348f
line wrap: on
line diff
--- a/runtime/fixed_alloc.h	Sat Oct 10 16:43:37 2009 -0400
+++ b/runtime/fixed_alloc.h	Wed May 05 22:12:23 2010 -0400
@@ -5,7 +5,7 @@
 #include "plat_types.h"
 #include "block_alloc.h"
 
-#define GET_BLOCK(ptr) ((void*)(((uint32_t)(ptr))&(~(BLOCK_SIZE-1))))
+#define GET_BLOCK(ptr) ((void*)(((uintptr_t)(ptr))&(~((uintptr_t)(BLOCK_SIZE-1)))))
 
 #define MAX_SIZE   (BLOCK_SIZE/32)
 #define STRIDE     (BLOCK_SIZE/1024)