mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-31 18:20:22 +08:00
preproc.c: Fix OpenWatcom compiler error
This commit is contained in:
parent
329e9665eb
commit
0bae3e5ffa
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user