Merge pull request #6940 from bandi13/takeInConstParameters

Can guarantee not to modify arguments of `mp_isodd` and `mp_iszero`
This commit is contained in:
JacobBarthelmeh
2023-11-02 15:45:51 -06:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -4884,12 +4884,12 @@ int mp_copy(const fp_int* a, fp_int* b)
return MP_OKAY;
}
int mp_isodd(mp_int* a)
int mp_isodd(const mp_int* a)
{
return fp_isodd(a);
}
int mp_iszero(mp_int* a)
int mp_iszero(const mp_int* a)
{
return fp_iszero(a);
}