mptov: make it actually work
This commit is contained in:
parent
6891093034
commit
7e477cc769
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue