summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2022-09-29 21:23:22 +0200
committerNiels Möller <nisse@lysator.liu.se>2022-09-29 21:23:22 +0200
commit8a446577d5a8c5f978eae3b6cf1daacf2d17a142 (patch)
tree2db2df1b1a1ea3bfda07bea4e2511e3088c25c2f
parentcf0ef938e881f2afb292ca7911f17afb756b1061 (diff)
downloadnettle-8a446577d5a8c5f978eae3b6cf1daacf2d17a142.tar.gz
Fix compiler warnings in the eccdata program.
-rw-r--r--eccdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eccdata.c b/eccdata.c
index 0bb934ab..e0726e8d 100644
--- a/eccdata.c
+++ b/eccdata.c
@@ -1189,7 +1189,8 @@ output_modulo (const char *name, const mpz_t x,
string_toupper (buf, sizeof (buf), name);
printf ("#define ECC_BMOD%s_SIZE %u\n", buf,
- (mpz_sizeinbase (t, 2) + bits_per_limb - 1) / bits_per_limb);
+ (unsigned) ((mpz_sizeinbase (t, 2) + bits_per_limb - 1)
+ / bits_per_limb));
bit_size = mpz_sizeinbase (x, 2);
@@ -1273,7 +1274,6 @@ output_curve (const struct ecc_curve *ecc, unsigned bits_per_limb)
{
unsigned limb_size = (ecc->bit_size + bits_per_limb - 1)/bits_per_limb;
unsigned i;
- unsigned qbits;
int redc_limbs;
mpz_t t;
mpz_t z;