mpmagadd: force output sign +1 always
This commit is contained in:
parent
8dc43a951c
commit
35065b9127
1 changed files with 2 additions and 0 deletions
|
@ -21,10 +21,12 @@ mpmagadd(mpint *b1, mpint *b2, mpint *sum)
|
|||
m = b2->top;
|
||||
if(n == 0){
|
||||
mpassign(mpzero, sum);
|
||||
sum->sign = 1;
|
||||
return;
|
||||
}
|
||||
if(m == 0){
|
||||
mpassign(b1, sum);
|
||||
sum->sign = 1;
|
||||
return;
|
||||
}
|
||||
mpbits(sum, (n+1)*Dbits);
|
||||
|
|
Loading…
Reference in a new issue