summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
authorKeith Kanios <keith@kanios.net>2010-11-07 16:21:00 -0600
committerKeith Kanios <keith@kanios.net>2010-11-07 16:21:00 -0600
commit0bae3e5ffa72c141cffd61292ed0642e33d0495b (patch)
tree910c01ae108d9fcd56610584bab2014a495c6f6a /preproc.c
parent329e9665eb65d31694672f8826e231922da73a3f (diff)
downloadnasm-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/preproc.c b/preproc.c
index 097e447..d062072 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;