shithub: riscv

Download patch

ref: 8d16e980c29535d9d92a4a297077a51207cf93e4
parent: ffdfc17ceede743b6fa32a6d1659f62f0d0d8650
author: cinap_lenrek <[email protected]>
date: Tue Dec 1 06:25:08 EST 2015

libmp: mpmod() fix typo

--- a/sys/src/libmp/port/mpmod.c
+++ b/sys/src/libmp/port/mpmod.c
@@ -42,7 +42,7 @@
 			c = mpnew(0);
 			p = mpnew(0);
 		}
-		mpleft(p, s, m);
+		mpleft(n, s, m);
 		mpleft(mpone, k*Dbits, c);
 		mpsub(c, m, c);
 		if(c->top >= k){