Fix warning with "implicit conversion loses integer precision”.

This commit is contained in:
David Garske
2017-03-16 14:56:03 -07:00
parent ce6e3ce8d0
commit 141210dcc0

View File

@@ -3912,7 +3912,7 @@ int mp_set_int (mp_int * a, unsigned long b)
/* use direct mp_set if b is less than mp_digit max */
if (b < MP_DIGIT_MAX) {
return mp_set (a, b);
return mp_set (a, (mp_digit)b);
}
mp_zero (a);