From f3805376f726e10ff2fe26e99b8702f20eee3eea Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Thu, 18 Feb 2021 00:23:53 -0300 Subject: common/cityhash: Use common types Allow sharing return types with the rest of the code base. For example, we use 'u128 = std::array', meanwhile Google's code uses 'uint128 = std::pair'. While we are at it, use size_t instead of std::size_t. --- src/tests/common/cityhash.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests') diff --git a/src/tests/common/cityhash.cpp b/src/tests/common/cityhash.cpp index 172dd55b4..7a40b6c4a 100644 --- a/src/tests/common/cityhash.cpp +++ b/src/tests/common/cityhash.cpp @@ -16,7 +16,7 @@ TEST_CASE("CityHash", "[common]") { REQUIRE(CityHash64(msg, sizeof(msg)) == 0x92d5c2e9cbfbbc01); REQUIRE(CityHash64WithSeed(msg, sizeof(msg), 0xdead) == 0xbfbe93f21a2820dd); REQUIRE(CityHash64WithSeeds(msg, sizeof(msg), 0xbeef, 0xcafe) == 0xb343317955fc8a06); - REQUIRE(CityHash128(msg, sizeof(msg)) == uint128{0x98e60d0423747eaa, 0xd8694c5b6fcaede9}); + REQUIRE(CityHash128(msg, sizeof(msg)) == u128{0x98e60d0423747eaa, 0xd8694c5b6fcaede9}); REQUIRE(CityHash128WithSeed(msg, sizeof(msg), {0xdead, 0xbeef}) == - uint128{0xf0307dba81199ebe, 0xd77764e0c4a9eb74}); + u128{0xf0307dba81199ebe, 0xd77764e0c4a9eb74}); } -- cgit v1.2.3