ecmult: Use size_t for array indices in _odd_multiplies_table
This commit is contained in:
@@ -70,10 +70,10 @@
|
|||||||
* Lastly the zr[0] value, which isn't used above, is set so that:
|
* Lastly the zr[0] value, which isn't used above, is set so that:
|
||||||
* - a.z = z(pre_a[0]) / zr[0]
|
* - a.z = z(pre_a[0]) / zr[0]
|
||||||
*/
|
*/
|
||||||
static void secp256k1_ecmult_odd_multiples_table(int n, secp256k1_ge *pre_a, secp256k1_fe *zr, secp256k1_fe *z, const secp256k1_gej *a) {
|
static void secp256k1_ecmult_odd_multiples_table(size_t n, secp256k1_ge *pre_a, secp256k1_fe *zr, secp256k1_fe *z, const secp256k1_gej *a) {
|
||||||
secp256k1_gej d, ai;
|
secp256k1_gej d, ai;
|
||||||
secp256k1_ge d_ge;
|
secp256k1_ge d_ge;
|
||||||
int i;
|
size_t i;
|
||||||
|
|
||||||
VERIFY_CHECK(!secp256k1_gej_is_infinity(a));
|
VERIFY_CHECK(!secp256k1_gej_is_infinity(a));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user