mptrunc: normalize after mpassign to handle the case b==r
This commit is contained in:
parent
333468d668
commit
c6318ecb17
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@ mptrunc(mpint *b, int n, mpint *r)
|
|||
}else if(b->sign == 1){
|
||||
if(d >= b->top){
|
||||
mpassign(b, r);
|
||||
mpnorm(r);
|
||||
return;
|
||||
}
|
||||
if(b != r)
|
||||
|
|
Loading…
Reference in a new issue