diff options
Diffstat (limited to 'sandbox/linux/seccomp/sandbox_impl.h')
-rw-r--r-- | sandbox/linux/seccomp/sandbox_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/linux/seccomp/sandbox_impl.h b/sandbox/linux/seccomp/sandbox_impl.h index 0a98283..18a359c 100644 --- a/sandbox/linux/seccomp/sandbox_impl.h +++ b/sandbox/linux/seccomp/sandbox_impl.h @@ -268,7 +268,7 @@ class Sandbox { // Wrapper around "read()" that can deal with partial and interrupted reads // and that does not modify the global errno variable. static ssize_t read(SysCalls& sys, int fd, void* buf, size_t len) { - if (len < 0) { + if (static_cast<ssize_t>(len) < 0) { sys.my_errno = EINVAL; return -1; } |