diff options
| -rw-r--r-- | expr.c | 8 | ||||
| -rw-r--r-- | expr.h | 1 | 
2 files changed, 1 insertions, 8 deletions
| @@ -782,18 +782,12 @@ condexpr(struct scope *s)  	return e;  } -struct expression * -constexpr(struct scope *s) -{ -	return eval(condexpr(s)); -} -  uint64_t  intconstexpr(struct scope *s)  {  	struct expression *e; -	e = constexpr(s); +	e = eval(condexpr(s));  	if (e->kind != EXPRCONST || !(typeprop(e->type) & PROPINT))  		error(&tok.loc, "not an integer constant expression");  	return e->constant.i; @@ -92,7 +92,6 @@ struct scope;  struct expression *expr(struct scope *);  struct expression *assignexpr(struct scope *); -struct expression *constexpr(struct scope *);  uint64_t intconstexpr(struct scope *);  void delexpr(struct expression *); | 
