shithub: scc

Download patch

ref: 60de88f36a2b22b01a5c638b9483ab8796c62f1d
parent: 62d0fef4e170e5e081e6cadac7fed9317a9ed967
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Apr 7 17:11:49 EDT 2017

[cc2-qbe] Fix emitconst

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

--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -219,7 +219,7 @@
 		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();