Fix types
authorunc0rr
Tue, 24 Apr 2012 22:27:56 +0400
changeset 6922 93bdd3d251fe
parent 6921 e6033fe39b7f
child 6923 d2405a6a86f5
Fix types
hedgewars/pas2c.h
--- a/hedgewars/pas2c.h	Tue Apr 24 16:11:07 2012 +0400
+++ b/hedgewars/pas2c.h	Tue Apr 24 22:27:56 2012 +0400
@@ -44,8 +44,8 @@
 typedef LongInt * PLongInt;
 typedef Integer * PInteger;
 
-#define new(a) __new(&a, sizeof(*(a)))
-void __new(pointer * p, int size);
+#define new(a) __new((void **)&a, sizeof(*(a)))
+void __new(void ** p, int size);
 
 #define dispose(a) __dispose(a, sizeof(*(a)))
 void __dispose(pointer p, int size);