shithub: drawterm

Download patch

ref: f389dc63969bbe41ddb79a7316ef2cdaf4a38bc2
parent: aa06c6a0e7737a56fbd2a8d932936796286e1741
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Dec 5 10:56:34 EST 2018

libmp: mptov: make it actually work (sync with 9front)

--- a/libmp/mptov.c
+++ b/libmp/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)