git: 9front

Download patch

ref: 3983db8928d3b6075ad21cc04408a0de87f04053
parent: e1ee1612ee073e6b98943431cfe640f908a392c3
author: aiju <devnull@localhost>
date: Wed Dec 5 05:26:52 EST 2018

mptov: make it actually work

--- a/sys/src/libmp/port/mptov.c
+++ b/sys/src/libmp/port/mptov.c
@@ -47,7 +47,7 @@
 
 	v = 0ULL;
 	for(s = 0; s < b->top; s++)
-		v |= b->p[s]<<(s*sizeof(mpdigit)*8);
+		v |= (uvlong)b->p[s]<<(s*sizeof(mpdigit)*8);
 
 	if(b->sign > 0){
 		if(v > MAXVLONG)
--