From 0bae3e5ffa72c141cffd61292ed0642e33d0495b Mon Sep 17 00:00:00 2001 From: Keith Kanios Date: Sun, 7 Nov 2010 16:21:00 -0600 Subject: [PATCH] preproc.c: Fix OpenWatcom compiler error --- preproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preproc.c b/preproc.c index 097e4472..d0620721 100644 --- a/preproc.c +++ b/preproc.c @@ -1390,7 +1390,7 @@ static Line *new_Line(void) */ static ExpDef *new_ExpDef(int exp_type) { - ExpDef *ed = nasm_malloc(sizeof(ExpDef)); + ExpDef *ed = (ExpDef*)nasm_malloc(sizeof(ExpDef)); ed->prev = NULL; ed->next = NULL; ed->type = exp_type; @@ -1422,7 +1422,7 @@ static ExpDef *new_ExpDef(int exp_type) */ static ExpInv *new_ExpInv(int exp_type, ExpDef *ed) { - ExpInv *ei = nasm_malloc(sizeof(ExpInv)); + ExpInv *ei = (ExpInv*)nasm_malloc(sizeof(ExpInv)); ei->prev = NULL; ei->type = exp_type; ei->def = ed; -- 2.11.4.GIT