scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 94e71f2cb3b9711c6efe033882d4b5e43043a915
parent 5e4fb6e5ad284273341f9056c927a3910b01adcf
Author: Quentin Carbonneaux <quentin@c9x.me>
Date:   Sat, 18 Feb 2017 10:51:34 -0500

[cc2-qbe] fix sign/zero extensions

Diffstat:
Mcc2/arch/qbe/cgen.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c @@ -189,7 +189,7 @@ cast(Type *td, Node *ns, Node *nd) * unsigned version of operations are always +1 the * signed version */ - op += (td->flags & SIGNF) == 0; + op += (ts->flags & SIGNF) == 0; } else if (d_isint) { /* conversion from float to int */ switch (ts->size) {