* src/mm/dumpmemory.h (DMREALLOC): Cast return value to type*.
authorChristian Thalinger <twisti@complang.tuwien.ac.at>
Mon, 21 Jul 2008 15:08:52 +0000 (17:08 +0200)
committerChristian Thalinger <twisti@complang.tuwien.ac.at>
Mon, 21 Jul 2008 15:08:52 +0000 (17:08 +0200)
src/mm/dumpmemory.h

index f51977799533768759635be856b7c2a2657c6826..4f5c4f4ab5cc6b4ec716fda908eb2043a50c2049 100644 (file)
@@ -90,8 +90,8 @@ struct dumpinfo_t {
 
 #define DNEW(type)            ((type *) dumpmemory_get(sizeof(type)))
 #define DMNEW(type,num)       ((type *) dumpmemory_get(sizeof(type) * (num)))
-#define DMREALLOC(ptr,type,num1,num2) dumpmemory_realloc((ptr), sizeof(type) * (num1), \
-                                                          sizeof(type) * (num2))
+#define DMREALLOC(ptr,type,num1,num2) ((type*) dumpmemory_realloc((ptr), sizeof(type) * (num1), \
+                                                                                                                                 sizeof(type) * (num2)))
 
 /* function prototypes ********************************************************/