Commit 6b684431 authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Don't use a parenthesised cast to construct values in HashTest

Summary: MSVC calls this out explicitly as a non-standard cast and errors.

Reviewed By: yfeldblum

Differential Revision: D7451404

fbshipit-source-id: 9261b15fdc47b6ffbc1b53e83cbfbe9f9af894a9
parent 5378e4c0
...@@ -470,17 +470,16 @@ INSTANTIATE_TEST_CASE_P( ...@@ -470,17 +470,16 @@ INSTANTIATE_TEST_CASE_P(
FNVTesting, FNVTesting,
FNVTest, FNVTest,
::testing::Values( ::testing::Values(
(FNVTestParam){"foobar", // 11 FNVTestParam{"foobar", // 11
0x85944171f73967e8}, 0x85944171f73967e8},
(FNVTestParam){"chongo was here!\n", // 39 FNVTestParam{"chongo was here!\n", // 39
0x46810940eff5f915}, 0x46810940eff5f915},
(FNVTestParam){"127.0.0.3", // 106, FNVTestParam{"127.0.0.3", // 106,
0xaabafc7104d91158}, 0xaabafc7104d91158},
(FNVTestParam){ FNVTestParam{"http://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash", // 126
"http://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash", // 126 0xd9b957fb7fe794c5},
0xd9b957fb7fe794c5}, FNVTestParam{"http://norvig.com/21-days.html", // 136
(FNVTestParam){"http://norvig.com/21-days.html", // 136 0x07aaa640476e0b9a}));
0x07aaa640476e0b9a}));
namespace { namespace {
enum class TestEnum { enum class TestEnum {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment