diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-01-02 16:53:02 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-01-20 15:25:23 +0100 |
commit | faedb111d2df78eabddaeccaba42f47572388bc7 (patch) | |
tree | ce51566ee5b0ac9311b4dedeebf48a4590f7afc9 /src/test/transaction_tests.cpp | |
parent | 1824644a363bf4adfb54cf32ab63806808fe778b (diff) |
refactor tests to fix ubsan suppressions
Diffstat (limited to 'src/test/transaction_tests.cpp')
-rw-r--r-- | src/test/transaction_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp index 1fe51fadd4..4fb7f9c405 100644 --- a/src/test/transaction_tests.cpp +++ b/src/test/transaction_tests.cpp @@ -220,7 +220,7 @@ BOOST_AUTO_TEST_CASE(tx_valid) fValid = false; break; } - COutPoint outpoint(uint256S(vinput[0].get_str()), vinput[1].get_int()); + COutPoint outpoint{uint256S(vinput[0].get_str()), uint32_t(vinput[1].get_int())}; mapprevOutScriptPubKeys[outpoint] = ParseScript(vinput[2].get_str()); if (vinput.size() >= 4) { @@ -308,7 +308,7 @@ BOOST_AUTO_TEST_CASE(tx_invalid) fValid = false; break; } - COutPoint outpoint(uint256S(vinput[0].get_str()), vinput[1].get_int()); + COutPoint outpoint{uint256S(vinput[0].get_str()), uint32_t(vinput[1].get_int())}; mapprevOutScriptPubKeys[outpoint] = ParseScript(vinput[2].get_str()); if (vinput.size() >= 4) { |