shithub: scc

Download patch

ref: 597d91d49910c15de1a6607fb4edb7f81c752770
parent: bb770ea4099cb504ed4a500659d330802fb44d9d
author: Quentin Carbonneaux <quentin@c9x.me>
date: Sat Feb 18 05:51:34 EST 2017

[cc2-qbe] fix sign/zero extensions

--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -189,7 +189,7 @@
 		 * 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) {