summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-09-07 02:13:35 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2019-09-07 02:13:35 +0200
commit971e14663aa9da3d8ebec3c6a066096b2a5c0236 (patch)
tree98bbac21c67304663144445ef8ddd4d9d856f0d1
parentff9ce8210aeaf968e08e16ab62c388b9cf555a06 (diff)
parent766a641d252cf4de21d50b2753dd8c25490b8ba0 (diff)
downloadplan9front-971e14663aa9da3d8ebec3c6a066096b2a5c0236.tar.xz
merge
-rw-r--r--sys/src/cmd/cc/com.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/src/cmd/cc/com.c b/sys/src/cmd/cc/com.c
index 46a59d49a..418bbae26 100644
--- a/sys/src/cmd/cc/com.c
+++ b/sys/src/cmd/cc/com.c
@@ -1081,6 +1081,11 @@ loop:
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)