| Index: sandbox/linux/seccomp-bpf/codegen.cc
|
| diff --git a/sandbox/linux/seccomp-bpf/codegen.cc b/sandbox/linux/seccomp-bpf/codegen.cc
|
| index df9676017a07a119e2f53eb25bfd676a191781a2..055aa71e11c743690d72866e44be5f8e9e129dcb 100644
|
| --- a/sandbox/linux/seccomp-bpf/codegen.cc
|
| +++ b/sandbox/linux/seccomp-bpf/codegen.cc
|
| @@ -145,14 +145,14 @@ size_t CodeGen::Offset(Node target) const {
|
| // TODO(mdempsky): Move into a general base::Tuple helper library.
|
| bool CodeGen::MemoKeyLess::operator()(const MemoKey& lhs,
|
| const MemoKey& rhs) const {
|
| - if (lhs.a != rhs.a)
|
| - return lhs.a < rhs.a;
|
| - if (lhs.b != rhs.b)
|
| - return lhs.b < rhs.b;
|
| - if (lhs.c != rhs.c)
|
| - return lhs.c < rhs.c;
|
| - if (lhs.d != rhs.d)
|
| - return lhs.d < rhs.d;
|
| + if (get<0>(lhs) != get<0>(rhs))
|
| + return get<0>(lhs) < get<0>(rhs);
|
| + if (get<1>(lhs) != get<1>(rhs))
|
| + return get<1>(lhs) < get<1>(rhs);
|
| + if (get<2>(lhs) != get<2>(rhs))
|
| + return get<2>(lhs) < get<2>(rhs);
|
| + if (get<3>(lhs) != get<3>(rhs))
|
| + return get<3>(lhs) < get<3>(rhs);
|
| return false;
|
| }
|
|
|
|
|