diff options
author | Pasta <pasta@dashboost.org> | 2021-12-18 12:50:58 -0500 |
---|---|---|
committer | pasta <pasta@dashboost.org> | 2023-01-03 19:31:29 -0600 |
commit | f2fc03ec856d7d19a20c482514350cced38f9504 (patch) | |
tree | f783af485b07464f29e0f5876db293a5ce44ca03 /src/test/streams_tests.cpp | |
parent | 3f8591d46b46cec2c4effc01f8822222087d74c4 (diff) |
refactor: use braced init for integer constants instead of c style casts
Diffstat (limited to 'src/test/streams_tests.cpp')
-rw-r--r-- | src/test/streams_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/streams_tests.cpp b/src/test/streams_tests.cpp index c4be3a4129..dce230ac10 100644 --- a/src/test/streams_tests.cpp +++ b/src/test/streams_tests.cpp @@ -144,10 +144,10 @@ BOOST_AUTO_TEST_CASE(bitstream_reader_writer) CDataStream data_copy(data); uint32_t serialized_int1; data >> serialized_int1; - BOOST_CHECK_EQUAL(serialized_int1, (uint32_t)0x7700C35A); // NOTE: Serialized as LE + BOOST_CHECK_EQUAL(serialized_int1, uint32_t{0x7700C35A}); // NOTE: Serialized as LE uint16_t serialized_int2; data >> serialized_int2; - BOOST_CHECK_EQUAL(serialized_int2, (uint16_t)0x1072); // NOTE: Serialized as LE + BOOST_CHECK_EQUAL(serialized_int2, uint16_t{0x1072}); // NOTE: Serialized as LE BitStreamReader<CDataStream> bit_reader(data_copy); BOOST_CHECK_EQUAL(bit_reader.Read(1), 0U); |