summaryrefslogtreecommitdiff
path: root/src/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unix.c')
-rw-r--r--src/unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix.c b/src/unix.c
index d50932f..564e0af 100644
--- a/src/unix.c
+++ b/src/unix.c
@@ -51,7 +51,7 @@ typedef struct _ALLOC_RECORD
} ALLOC_RECORD;
ALLOC_RECORD g_AllocHash[ALLOC_HASH_SIZE];
-#define PTR_TO_ALLOC_HASH(x) ((((ULONG)(size_t)(x)) >> 3) & (ALLOC_HASH_SIZE - 1))
+#define PTR_TO_ALLOC_HASH(x) ((((size_t)(x)) >> 3) & (ALLOC_HASH_SIZE - 1))
ULONG
GetHeapMemoryUsage(void)
@@ -838,7 +838,7 @@ Return value:
NULL,
"mprotect",
(void *)(size_t)errno,
- (void *)(PROT_READ | PROT_WRITE),
+ (void *)(size_t)(PROT_READ | PROT_WRITE),
__FILE__, __LINE__);
}
return(TRUE);