fix valgrind warning mp_add_d

This commit is contained in:
toddouska
2015-07-24 15:34:56 -07:00
parent 45ef61e46f
commit 0a975eaff9

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;
}