Fix -Wc++11-narrowing error with Clang introduced in 2546d9e

PiperOrigin-RevId: 421784429
Change-Id: Ia5d09a980db39bc8d88373dc769cb5889417502d
This commit is contained in:
Christian Blichmann 2022-01-14 03:39:21 -08:00 committed by Copybara-Service
parent 2546d9e85b
commit 9229b3fa82

View File

@ -34,7 +34,7 @@ TEST(RegsTest, SkipSyscallWorks) {
ALLOW,
};
sock_fprog prog = {
.len = policy.size(),
.len = static_cast<uint8_t>(policy.size()),
.filter = policy.data(),
};
// Create socketpair for synchronization