From 2c71327ff56de09f15d9b17f266fc54aa45aa082 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 10 Oct 2020 11:02:02 +0300 Subject: [PATCH] Fix build on Mac OS --- src/Common/tests/int_hashes_perf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Common/tests/int_hashes_perf.cpp b/src/Common/tests/int_hashes_perf.cpp index 569e9273bc4..543326a9e5c 100644 --- a/src/Common/tests/int_hashes_perf.cpp +++ b/src/Common/tests/int_hashes_perf.cpp @@ -279,7 +279,9 @@ int main(int argc, char ** argv) if (!method || method == 1) test (n, data.data(), "0: identity"); if (!method || method == 2) test (n, data.data(), "1: intHash32"); +#if !defined(__APPLE__) /// The difference in size_t: unsigned long on Linux, unsigned long long on Mac OS. if (!method || method == 3) test (n, data.data(), "2: intHash64"); +#endif if (!method || method == 4) test (n, data.data(), "3: two rounds"); if (!method || method == 5) test (n, data.data(), "4: two rounds and two variables"); if (!method || method == 6) test (n, data.data(), "5: two rounds with less ops");