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