diff --git a/src/field_gmp_impl.h b/src/field_gmp_impl.h index 880c5a72655..3dbd7604b53 100644 --- a/src/field_gmp_impl.h +++ b/src/field_gmp_impl.h @@ -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