Pass scalar by reference in secp256k1_wnaf_const()
After this change, no struct or union is passed by value in the entire codebase. This makes it easier to compile the library with CompCert.
This commit is contained in:
@@ -3050,7 +3050,7 @@ void test_constant_wnaf(const secp256k1_scalar *number, int w) {
|
||||
}
|
||||
bits = 128;
|
||||
#endif
|
||||
skew = secp256k1_wnaf_const(wnaf, num, w, bits);
|
||||
skew = secp256k1_wnaf_const(wnaf, &num, w, bits);
|
||||
|
||||
for (i = WNAF_SIZE_BITS(bits, w); i >= 0; --i) {
|
||||
secp256k1_scalar t;
|
||||
|
||||
Reference in New Issue
Block a user