diff options
Diffstat (limited to 'zenstore/compactcas.cpp')
| -rw-r--r-- | zenstore/compactcas.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zenstore/compactcas.cpp b/zenstore/compactcas.cpp index 053d441b0..65b9bc969 100644 --- a/zenstore/compactcas.cpp +++ b/zenstore/compactcas.cpp @@ -46,7 +46,7 @@ namespace { ExtendablePathBuilder<256> Path; char BlockHexString[9]; - FormatHex(BlockIndex, BlockHexString); + ToHex(BlockIndex, BlockHexString); Path.Append(BlocksBasePath); Path.AppendSeparator(); @@ -1222,30 +1222,30 @@ TEST_CASE("compactcas.hex") CHECK(!ParseHex("", Value)); char Hex[9]; - FormatHex(0, Hex); + ToHex(0, Hex); HexString = std::string(Hex); CHECK(ParseHex(HexString, Value)); CHECK(Value == 0); - FormatHex(std::numeric_limits<std::uint32_t>::max(), Hex); + ToHex(std::numeric_limits<std::uint32_t>::max(), Hex); HexString = std::string(Hex); CHECK(HexString == "ffffffff"); CHECK(ParseHex(HexString, Value)); CHECK(Value == std::numeric_limits<std::uint32_t>::max()); - FormatHex(0xadf14711, Hex); + ToHex(0xadf14711, Hex); HexString = std::string(Hex); CHECK(HexString == "adf14711"); CHECK(ParseHex(HexString, Value)); CHECK(Value == 0xadf14711); - FormatHex(0x80000000, Hex); + ToHex(0x80000000, Hex); HexString = std::string(Hex); CHECK(HexString == "80000000"); CHECK(ParseHex(HexString, Value)); CHECK(Value == 0x80000000); - FormatHex(0x718293a4, Hex); + ToHex(0x718293a4, Hex); HexString = std::string(Hex); CHECK(HexString == "718293a4"); CHECK(ParseHex(HexString, Value)); |