Type safe newAst, fixes various warnings.
[fw/sdcc] / src / SDCCglue.c
index e605c508a81557fa12b4ebba61bd79f8e91f969d..686b67bea984544f07544f47a5efa2dbc0f57873 100644 (file)
@@ -239,7 +239,7 @@ static void emitRegularMap (memmap * map, bool addPublics, bool arFlag)
            if (IS_AGGREGATE (sym->type))
                ival = initAggregates (sym, sym->ival, NULL);
            else
-               ival = newNode ('=', newAst (EX_VALUE, symbolVal (sym)),
+               ival = newNode ('=', newAst_VALUE(symbolVal (sym)),
                                decorateType (resolveSymbols (list2expr (sym->ival))));
            codeOutFile = statsg->oFile;
            allocInfo = 0;