Skip to content

Commit

Permalink
Merge pull request bitcoin#9
Browse files Browse the repository at this point in the history
ac274bf Fix x64 gmp init on platforms that define UL as 32 bits. (evoskuil)
  • Loading branch information
sipa committed May 8, 2014
2 parents 920c243 + ac274bf commit a797cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/field_gmp_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void static secp256k1_fe_inner_start(void) {
for (int i=0; i<(33+GMP_NUMB_BITS-1)/GMP_NUMB_BITS; i++)
secp256k1_field_pc[i] = 0;
secp256k1_field_pc[0] += 0x3D1UL;
secp256k1_field_pc[32/GMP_NUMB_BITS] += (1UL << (32 % GMP_NUMB_BITS));
secp256k1_field_pc[32/GMP_NUMB_BITS] += (((mp_limb_t)1) << (32 % GMP_NUMB_BITS));
for (int i=0; i<FIELD_LIMBS; i++) {
secp256k1_field_p[i] = 0;
}
Expand Down

0 comments on commit a797cef

Please sign in to comment.