[hackers] [scc] Convert parithmetic() to use new type fields || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 8 Jan 2016 13:13:58 +0100 (CET)

commit 4e16556fa4948d8dd822f7ed31d4e367514f7182
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Jan 7 19:31:44 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Jan 8 10:49:29 2016 +0100

    Convert parithmetic() to use new type fields

diff --git a/cc1/expr.c b/cc1/expr.c
index dc6c9b5..9a30c66 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -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);
Received on Fri Jan 08 2016 - 13:13:58 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 08 2016 - 13:24:36 CET