parent
1d03522625
commit
356084ee31
@ -24,6 +24,10 @@ int mp_lshd(mp_int *a, int b)
|
|||||||
if (b <= 0) {
|
if (b <= 0) {
|
||||||
return MP_OKAY;
|
return MP_OKAY;
|
||||||
}
|
}
|
||||||
|
/* no need to shift 0 around */
|
||||||
|
if (mp_iszero(a) == MP_YES) {
|
||||||
|
return MP_OKAY;
|
||||||
|
}
|
||||||
|
|
||||||
/* grow to fit the new digits */
|
/* grow to fit the new digits */
|
||||||
if (a->alloc < (a->used + b)) {
|
if (a->alloc < (a->used + b)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user