You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge rust-bitcoin#3411: script: refactor push_int_unchecked and test push_int overflow
a33bcd3 test: ensure push_int check i32::MIN of overflow error (Chris Hyunhum Cho)
c9988ba refactor: use match for OP_N push in push_int_unchecked (Chris Hyunhum Cho)
Pull request description:
Follow up rust-bitcoin#3392c9988ba
- refactor `push_int_unchecked` with match expression for cleaner code(many thanks for tcharding rust-bitcoin#3407).
a33bcd3
- ensure newly introduced safe `push_int` function as expected, testing if returns `Error::NumericOverflow` when `n` is `i32::MIN`
ACKs for top commit:
tcharding:
ACK a33bcd3
apoelstra:
ACK a33bcd3 successfully ran local tests
Tree-SHA512: 14f19d37f35b47e148b40c5017f0270c534c136d86be0c061cb476e1693130c5fc1bfc45a6f7c75a473022490c5f4e061cbc02640b1a616619ae721116e3cd54
0 commit comments