fix valgrind warning mp_add_d

pull/109/head
toddouska 2015-07-24 15:34:56 -07:00
parent 45ef61e46f
commit 0a975eaff9
1 changed files with 1 additions and 1 deletions

View File

@ -3878,7 +3878,7 @@ int mp_add_d (mp_int* a, mp_digit b, mp_int* c)
*tmpc++ &= MP_MASK;
}
/* set final carry */
if (mu != 0 && ix < c->alloc) {
if (ix < c->alloc) {
ix++;
*tmpc++ = mu;
}