diff options
author | Niels Möller <nisse@lysator.liu.se> | 2013-04-11 08:36:08 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2013-04-11 08:36:08 +0200 |
commit | bf587cd520729a1dfeab605d1e206a47f115393c (patch) | |
tree | b22b3e462b3d86ee1d69b4a923c28f256c6b28eb /ecc-mul-g.c | |
parent | fb709927da0c6088e80cf21fd988542e5e711866 (diff) | |
download | nettle-bf587cd520729a1dfeab605d1e206a47f115393c.tar.gz |
Replace mp_bitcnt_t by unsigned, for compatibility with older gmp versions.
Diffstat (limited to 'ecc-mul-g.c')
-rw-r--r-- | ecc-mul-g.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ecc-mul-g.c b/ecc-mul-g.c index d95e518d..8e41c110 100644 --- a/ecc-mul-g.c +++ b/ecc-mul-g.c @@ -66,7 +66,9 @@ ecc_mul_g (const struct ecc_curve *ecc, mp_limb_t *r, for (j = 0; j * c < bit_rows; j++) { unsigned bits; - mp_bitcnt_t bit_index; + /* Avoid the mp_bitcnt_t type for compatibility with older GMP + versions. */ + unsigned bit_index; /* Extract c bits from n, stride k, starting at i + kcj, ending at i + k (cj + c - 1)*/ |