shithub: riscv

Download patch

ref: 2917cb1d17b30e599f3934fcf2878f3174d63871
parent: ba8e5c774af5dd5481e124594a2384873527294c
parent: 971e14663aa9da3d8ebec3c6a066096b2a5c0236
author: Ori Bernstein <[email protected]>
date: Sat Sep 7 08:46:44 EDT 2019

merge

--- a/sys/src/cmd/cc/com.c
+++ b/sys/src/cmd/cc/com.c
@@ -1081,6 +1081,11 @@
 		if(castucom(n))
 			warn(n, "32-bit unsigned complement zero-extended to 64 bits");
 		ccom(l);
+		if(l->type == T){
+			n->left = Z;
+			n->type = T;
+			break;
+		}
 		if(l->op == OCONST) {
 			evconst(n);
 			if(n->op == OCONST)