From 55f75ea058c277526d4c53404e7127cd15671a3c Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 4 Jan 2007 19:18:47 +0000 Subject: [PATCH] I'm lazy. --- src/common/common_memory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/common_memory.h b/src/common/common_memory.h index 5a8a606f6..66250f13b 100644 --- a/src/common/common_memory.h +++ b/src/common/common_memory.h @@ -32,10 +32,10 @@ class MTX_DLL_API memory_c { public: typedef unsigned char X; - explicit memory_c(X *p = NULL, int s = 0, bool f = false): // allocate a new counter + explicit memory_c(void *p = NULL, int s = 0, bool f = false): // allocate a new counter its_counter(NULL) { if (p) - its_counter = new counter(p, s, f); + its_counter = new counter((unsigned char *)p, s, f); } ~memory_c() {