roconnor-blockstream 8fe63e5654 Increase robustness against UB.
Thanks to elichai2 who noted that the literal '1' is a signed integer, and that shifting a signed 32-bit integer by 31 bits causes an overflow and yields undefined behaviour.
While 'scalar_low_impl''s 'secp256k1_scalar_cadd_bit' is only used for testing purposes and currently the 'bit' parameter is only 0 or 1, it is better to avoid undefined behaviour in case the used domain of 'secp256k1_scalar_cadd_bit' expands.
2019-07-04 22:35:28 -04:00
..
2019-05-25 14:01:09 +02:00
2018-07-06 08:40:35 -04:00
2018-07-06 08:40:35 -04:00
2019-05-25 14:01:09 +02:00
2017-09-27 15:03:20 -07:00