From: Niels Möller Date: Thu, 29 Sep 2022 19:23:22 +0000 (+0200) Subject: Fix compiler warnings in the eccdata program. X-Git-Tag: nettle_3.9_release_20230514~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a446577d5a8c5f978eae3b6cf1daacf2d17a142;p=thirdparty%2Fnettle.git Fix compiler warnings in the eccdata program. --- 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;