shithub: riscv

Download patch

ref: d287f178aac4710b11ca24fa312d740518b78a08
parent: 9965e575f8783cbaf29b6b1c8857706b164e427c
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jul 31 04:52:17 EDT 2020

dc: increase exponent limit (thanks unboe, lyndon)

dc has an arbitrary limit on the size of the exponent. Lets
replace it with a different arbitrary limit.

--- a/sys/src/cmd/dc.c
+++ b/sys/src/cmd/dc.c
@@ -328,7 +328,7 @@
 				neg++;
 				chsign(arg1);
 			}
-			if(length(arg1)>=3) {
+			if(length(arg1)>=5) {
 				error("exp too big\n");
 			}
 			savk = sunputc(arg2);