-/* $OpenBSD: defs.h,v 1.14 2014/01/08 22:30:32 millert Exp $ */
+/* $OpenBSD: defs.h,v 1.15 2014/01/08 23:12:57 millert Exp $ */
/* $NetBSD: defs.h,v 1.6 1996/03/19 03:21:30 jtc Exp $ */
/*
/* storage allocation macros */
-#define NEW(t) (allocate(sizeof(t)))
-#define NEW2(n,t) (allocate((n)*sizeof(t)))
+#define NEW(t) ((t*)allocate(sizeof(t)))
+#define NEW2(n,t) ((t*)allocate((n)*sizeof(t)))
/* the structure of a symbol table entry */