diff --git a/test/util-test.cc b/test/util-test.cc index 2380e797..20f15170 100644 --- a/test/util-test.cc +++ b/test/util-test.cc @@ -127,7 +127,8 @@ TEST(ArgTest, ArgInfo) { } #define EXPECT_ARG_(Char, type_code, MakeArgType, ExpectedType, value) { \ - Arg arg = MakeArg(static_cast(value)); \ + MakeArgType input = static_cast(value); \ + Arg arg = MakeArg(input); \ EXPECT_EQ(Arg::type_code, arg.type); \ ExpectedType expected_value = static_cast(value); \ EXPECT_EQ(expected_value, ArgInfo::get(arg)); \