add a couple missing `const`s to ecmult_pippenger_wnaf

This commit is contained in:
Andrew Poelstra 2018-02-24 17:29:34 +00:00
parent cd329dbc3e
commit 9b3ff0309d
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ struct secp256k1_pippenger_state {
* to the point's wnaf[i]. Second, the buckets are added together such that * to the point's wnaf[i]. Second, the buckets are added together such that
* r += 1*bucket[0] + 3*bucket[1] + 5*bucket[2] + ... * r += 1*bucket[0] + 3*bucket[1] + 5*bucket[2] + ...
*/ */
static int secp256k1_ecmult_pippenger_wnaf(secp256k1_gej *buckets, int bucket_window, struct secp256k1_pippenger_state *state, secp256k1_gej *r, secp256k1_scalar *sc, secp256k1_ge *pt, size_t num) { static int secp256k1_ecmult_pippenger_wnaf(secp256k1_gej *buckets, int bucket_window, struct secp256k1_pippenger_state *state, secp256k1_gej *r, const secp256k1_scalar *sc, const secp256k1_ge *pt, size_t num) {
size_t n_wnaf = WNAF_SIZE(bucket_window+1); size_t n_wnaf = WNAF_SIZE(bucket_window+1);
size_t np; size_t np;
size_t no = 0; size_t no = 0;