From 8c7c3602ac1fc2e1b382b442d3161a7151d2cec9 Mon Sep 17 00:00:00 2001 From: Teddy Date: Sun, 27 Apr 2014 04:32:02 +0800 Subject: ... --- semantics.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'semantics.c') diff --git a/semantics.c b/semantics.c index 5a6419c..c29ae04 100644 --- a/semantics.c +++ b/semantics.c @@ -1174,8 +1174,8 @@ ExpType semantics_exp(CNode *p, CScope_t scope) { POINTER_CONV(res.type, p); p->ext.var = cvar_create(p->ext.type->name, res.type, NULL); } - p->ext.is_const = res.type->type == CARR || - res.type->type == CFUNC; + p->ext.is_const = 0; /* res.type->type == CARR || + res.type->type == CFUNC; */ } break; case INT: @@ -1197,7 +1197,7 @@ ExpType semantics_exp(CNode *p, CScope_t scope) { res.type = type; res.lval = 0; p->ext.is_const = 1; - p->ext.const_val = (long int)p->rec.strval; + /* TODO: to be filled with address */ } break; case EXP: -- cgit v1.2.3