shithub: riscv

Download patch

ref: 3c53021357e9ce86f77422877e36cdc73761e05b
parent: 29f03ba4e74ec58b87e3e6470aadfb58ee804f48
author: aiju <devnull@localhost>
date: Tue Apr 24 08:58:54 EDT 2018

forp: fix ternary operator

--- a/sys/src/cmd/forp/cvt.c
+++ b/sys/src/cmd/forp/cvt.c
@@ -323,8 +323,8 @@
 	uint m;
 	int i, a, b, q;
 	
-	m = n1->size;
-	if(n2->size > m) m = n2->size;
+	m = n2->size;
+	if(n3->size > m) m = n3->size;
 	if(m > sz) m = sz;
 	nodevars(rn, m);
 	q = tologic(n1);