aboutsummaryrefslogtreecommitdiff
path: root/src/test/uint256_tests.cpp
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-11-21 17:06:22 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-11-21 17:37:25 +0100
commitfacf629ce8ff1d1f6d254dde4e89b5018f8df60e (patch)
tree9d88a0243c941a79ea24f0660a0d6cab6a329ae4 /src/test/uint256_tests.cpp
parentd752349029ec7a76f1fd440db2ec2e458d0f3c99 (diff)
downloadbitcoin-facf629ce8ff1d1f6d254dde4e89b5018f8df60e.tar.xz
refactor: Remove unused and fragile string interface from arith_uint256
Diffstat (limited to 'src/test/uint256_tests.cpp')
-rw-r--r--src/test/uint256_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/uint256_tests.cpp b/src/test/uint256_tests.cpp
index 933988dd7a..8aa540e761 100644
--- a/src/test/uint256_tests.cpp
+++ b/src/test/uint256_tests.cpp
@@ -260,8 +260,8 @@ BOOST_AUTO_TEST_CASE( conversion )
BOOST_CHECK(UintToArith256(OneL) == 1);
BOOST_CHECK(ArithToUint256(0) == ZeroL);
BOOST_CHECK(ArithToUint256(1) == OneL);
- BOOST_CHECK(arith_uint256(R1L.GetHex()) == UintToArith256(R1L));
- BOOST_CHECK(arith_uint256(R2L.GetHex()) == UintToArith256(R2L));
+ BOOST_CHECK(arith_uint256(UintToArith256(uint256S(R1L.GetHex()))) == UintToArith256(R1L));
+ BOOST_CHECK(arith_uint256(UintToArith256(uint256S(R2L.GetHex()))) == UintToArith256(R2L));
BOOST_CHECK(R1L.GetHex() == UintToArith256(R1L).GetHex());
BOOST_CHECK(R2L.GetHex() == UintToArith256(R2L).GetHex());
}