mptov: make it actually work

This commit is contained in:
aiju 2018-12-05 10:26:52 +00:00
parent 6891093034
commit 7e477cc769

View file

@ -47,7 +47,7 @@ mptov(mpint *b)
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)