From 9229b3fa82fa72fc9521a105890488fb9aeb45cb Mon Sep 17 00:00:00 2001 From: Christian Blichmann Date: Fri, 14 Jan 2022 03:39:21 -0800 Subject: [PATCH] Fix `-Wc++11-narrowing` error with Clang introduced in 2546d9e PiperOrigin-RevId: 421784429 Change-Id: Ia5d09a980db39bc8d88373dc769cb5889417502d --- sandboxed_api/sandbox2/regs_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandboxed_api/sandbox2/regs_test.cc b/sandboxed_api/sandbox2/regs_test.cc index b7bc4e9..850e7fc 100644 --- a/sandboxed_api/sandbox2/regs_test.cc +++ b/sandboxed_api/sandbox2/regs_test.cc @@ -34,7 +34,7 @@ TEST(RegsTest, SkipSyscallWorks) { ALLOW, }; sock_fprog prog = { - .len = policy.size(), + .len = static_cast(policy.size()), .filter = policy.data(), }; // Create socketpair for synchronization