File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ task:
397
397
- PowerShell -NoLogo -Command if ($env:CIRRUS_PR -ne $null) { git fetch $env:CIRRUS_REPO_CLONE_URL pull/$env:CIRRUS_PR/merge; git reset --hard FETCH_HEAD; }
398
398
configure_script :
399
399
- ' %x64_NATIVE_TOOLS%'
400
- - cmake -G "Visual Studio 17 2022" -A x64 -S . -B build -DSECP256K1_ENABLE_MODULE_RECOVERY=ON -DSECP256K1_BUILD_EXAMPLES=ON
400
+ - cmake -E env CFLAGS="/WX" cmake - G "Visual Studio 17 2022" -A x64 -S . -B build -DSECP256K1_ENABLE_MODULE_RECOVERY=ON -DSECP256K1_BUILD_EXAMPLES=ON
401
401
build_script :
402
402
- ' %x64_NATIVE_TOOLS%'
403
403
- cmake --build build --config RelWithDebInfo -- -property:UseMultiToolTask=true;CL_MPcount=5
Original file line number Diff line number Diff line change @@ -680,7 +680,7 @@ static int secp256k1_ecmult_pippenger_batch(const secp256k1_callback* error_call
680
680
}
681
681
state_space -> ps = (struct secp256k1_pippenger_point_state * ) secp256k1_scratch_alloc (error_callback , scratch , entries * sizeof (* state_space -> ps ));
682
682
state_space -> wnaf_na = (int * ) secp256k1_scratch_alloc (error_callback , scratch , entries * (WNAF_SIZE (bucket_window + 1 )) * sizeof (int ));
683
- buckets = (secp256k1_gej * ) secp256k1_scratch_alloc (error_callback , scratch , (1 << bucket_window ) * sizeof (* buckets ));
683
+ buckets = (secp256k1_gej * ) secp256k1_scratch_alloc (error_callback , scratch , (( size_t ) 1 << bucket_window ) * sizeof (* buckets ));
684
684
if (state_space -> ps == NULL || state_space -> wnaf_na == NULL || buckets == NULL ) {
685
685
secp256k1_scratch_apply_checkpoint (error_callback , scratch , scratch_checkpoint );
686
686
return 0 ;
Original file line number Diff line number Diff line change @@ -2221,7 +2221,7 @@ static void scalar_test(void) {
2221
2221
for (i = 0 ; i < 100 ; ++ i ) {
2222
2222
int low ;
2223
2223
int shift = 1 + secp256k1_testrand_int (15 );
2224
- int expected = r .d [0 ] % (1 << shift );
2224
+ int expected = r .d [0 ] % (1ULL << shift );
2225
2225
low = secp256k1_scalar_shr_int (& r , shift );
2226
2226
CHECK (expected == low );
2227
2227
}
You can’t perform that action at this time.
0 commit comments