summaryrefslogtreecommitdiff
path: root/sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'sym.c')
-rw-r--r--sym.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sym.c b/sym.c
index d84fec5..b277162 100644
--- a/sym.c
+++ b/sym.c
@@ -15,7 +15,8 @@ install(char *s, int t, double v)
memset(sym, 0, sizeof *sym);
sym->name = estrdup(s);
sym->type = t;
- sym->u.val = v;
+ sym->dconst = v;
+ sym->var.type = -1;
sym->next = symtab;
symtab = sym;
return sym;