scc

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

commit 7126c00995fd0c06ec41adf03c37881b4ac01ba6
parent d1bebbb12dadfca6ac97f0ccfb693a95e85d3307
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  7 Apr 2017 21:11:49 +0200

[cc2-qbe] Fix emitconst

The mask for 8 byte constants was wrong. Thank mpu!

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

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c @@ -219,7 +219,7 @@ emitconst(Node *np) printf("%ld", (long) np->u.i & 0xFFFFFFFF); break; case 8: - printf("%lld", (long long) np->u.i & 0xFFFFFFFF); + printf("%lld", (long long) np->u.i); break; default: abort();