Skip to content

Commit

Permalink
safe_memcpy_test: Explicit type for arguments of the vector construct…
Browse files Browse the repository at this point in the history
…or (#16549)

Signed-off-by: rialg <grial@google.com>
  • Loading branch information
rialg authored May 19, 2021
1 parent 67bfb7c commit bf3e6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/common/safe_memcpy_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ TEST(SafeMemcpyUnsafeDstTest, PrependGrpcFrameHeader) {
uint8_t* dst = new uint8_t[4];
memset(dst, 0, 4);
safeMemcpyUnsafeDst(dst, &src);
EXPECT_THAT(std::vector(dst, dst + sizeof(src)), ElementsAre(1, 2, 3, 4));
EXPECT_THAT(std::vector<uint8_t>(dst, dst + sizeof(src)), ElementsAre(1, 2, 3, 4));
delete[] dst;
}

Expand Down

0 comments on commit bf3e6a2

Please sign in to comment.