diff options
author | Keith Kanios <keith@kanios.net> | 2010-11-07 16:21:00 -0600 |
---|---|---|
committer | Keith Kanios <keith@kanios.net> | 2010-11-07 16:21:00 -0600 |
commit | 0bae3e5ffa72c141cffd61292ed0642e33d0495b (patch) | |
tree | 910c01ae108d9fcd56610584bab2014a495c6f6a /preproc.c | |
parent | 329e9665eb65d31694672f8826e231922da73a3f (diff) | |
download | nasm-0bae3e5ffa72c141cffd61292ed0642e33d0495b.tar.gz nasm-0bae3e5ffa72c141cffd61292ed0642e33d0495b.tar.bz2 nasm-0bae3e5ffa72c141cffd61292ed0642e33d0495b.zip |
preproc.c: Fix OpenWatcom compiler error
Diffstat (limited to 'preproc.c')
-rw-r--r-- | preproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |