commit 4e16556fa4948d8dd822f7ed31d4e367514f7182
parent 0c094f48799666e4e0c82aed4fd817f69a3f3f6e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 7 Jan 2016 19:31:44 +0100
Convert parithmetic() to use new type fields
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cc1/expr.c b/cc1/expr.c
@@ -303,7 +303,7 @@ parithmetic(char op, Node *lp, Node *rp)
lp = node(OSUB, inttype, lp, rp);
return node(ODIV, inttype, lp, size);
}
- if (BTYPE(rp) != INT)
+ if (!rp->type->integer)
goto incorrect;
rp = convert(promote(rp), sizettype, 0);