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

@@ -163,7 +163,7 @@ mp_digit prime_digit(void)
int n;
mp_digit d;
n = abs(rand()) % n_prime;
n = labs(rand()) % n_prime;
fseek(primes, n * sizeof(mp_digit), SEEK_SET);
fread(&d, 1, sizeof(mp_digit), primes);
return d;