Fix warnings (clang 3.6)

This commit is contained in:
Nicolas Williams
2016-02-19 22:18:29 -06:00
parent dbf9750989
commit b4cf4de807
21 changed files with 37 additions and 35 deletions

View File

@@ -492,7 +492,7 @@ void mp_set(mp_int *mp, mp_digit d)
mp_err mp_set_int(mp_int *mp, long z)
{
int ix;
unsigned long v = abs(z);
unsigned long v = labs(z);
mp_err res;
ARGCHK(mp != NULL, MP_BADARG);

View File

@@ -281,7 +281,7 @@ int main(void)
printf("%s\n", buf);
} else if (n == 13) {
rand_num2(&a);
tmp = abs(rand()) & THE_MASK;
tmp = labs(rand()) & THE_MASK;
mp_add_d(&a, tmp, &b);
printf("add_d\n");
mp_to64(&a, buf);
@@ -290,7 +290,7 @@ int main(void)
printf("%s\n", buf);
} else if (n == 14) {
rand_num2(&a);
tmp = abs(rand()) & THE_MASK;
tmp = labs(rand()) & THE_MASK;
mp_sub_d(&a, tmp, &b);
printf("sub_d\n");
mp_to64(&a, buf);