kernel32: Revert the removal of a cast from a macro
Andrew Talbot
andrew.talbot at talbotville.com
Thu Dec 20 12:20:15 CST 2007
I am putting this cast back to increase type safety, in response to a request from Rob Shearman.
-- Andy.
---
Changelog:
kernel32: Revert the removal of a cast from a macro.
diff --git a/dlls/kernel32/local16.c b/dlls/kernel32/local16.c
index 5716281..e250d84 100644
--- a/dlls/kernel32/local16.c
+++ b/dlls/kernel32/local16.c
@@ -133,7 +133,7 @@ typedef struct
/* All local heap allocations are aligned on 4-byte boundaries */
#define LALIGN(word) (((word) + 3) & ~3)
-#define ARENA_PTR(ptr,arena) ((LOCALARENA *)((ptr)+(arena)))
+#define ARENA_PTR(ptr,arena) ((LOCALARENA *)((char *)(ptr)+(arena)))
#define ARENA_PREV(ptr,arena) (ARENA_PTR((ptr),(arena))->prev & ~3)
#define ARENA_NEXT(ptr,arena) (ARENA_PTR((ptr),(arena))->next)
#define ARENA_FLAGS(ptr,arena) (ARENA_PTR((ptr),(arena))->prev & 3)
More information about the wine-patches
mailing list