|
@@ -22,9 +22,9 @@
|
|
#define MEMAREA_ALIGN SIZEOF_VOID_P
|
|
#define MEMAREA_ALIGN SIZEOF_VOID_P
|
|
|
|
|
|
#if MEMAREA_ALIGN == 4
|
|
#if MEMAREA_ALIGN == 4
|
|
-#define MEMAREA_ALIGN_MASK 3lu
|
|
|
|
|
|
+#define MEMAREA_ALIGN_MASK ((uintptr_t)3)
|
|
#elif MEMAREA_ALIGN == 8
|
|
#elif MEMAREA_ALIGN == 8
|
|
-#define MEMAREA_ALIGN_MASK 7lu
|
|
|
|
|
|
+#define MEMAREA_ALIGN_MASK ((uintptr_t)7)
|
|
#else
|
|
#else
|
|
#error "void* is neither 4 nor 8 bytes long. I don't know how to align stuff."
|
|
#error "void* is neither 4 nor 8 bytes long. I don't know how to align stuff."
|
|
#endif
|
|
#endif
|