parent
0b9e9b5b08
commit
62442d4f33
@ -49,9 +49,6 @@ mp_add_d (mp_int * a, mp_digit b, mp_int * c)
|
|||||||
/* old number of used digits in c */
|
/* old number of used digits in c */
|
||||||
oldused = c->used;
|
oldused = c->used;
|
||||||
|
|
||||||
/* sign always positive */
|
|
||||||
c->sign = MP_ZPOS;
|
|
||||||
|
|
||||||
/* source alias */
|
/* source alias */
|
||||||
tmpa = a->dp;
|
tmpa = a->dp;
|
||||||
|
|
||||||
@ -96,6 +93,9 @@ mp_add_d (mp_int * a, mp_digit b, mp_int * c)
|
|||||||
ix = 1;
|
ix = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* sign always positive */
|
||||||
|
c->sign = MP_ZPOS;
|
||||||
|
|
||||||
/* now zero to oldused */
|
/* now zero to oldused */
|
||||||
while (ix++ < oldused) {
|
while (ix++ < oldused) {
|
||||||
*tmpc++ = 0;
|
*tmpc++ = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user