From 3e3aefda6e61d0dc48665257e93cccc50ba5800a Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 3 Jun 2013 21:55:55 -0600 Subject: [PATCH] Fix assert unsigned-vs-0 comparison Nodes::size_type is unsigned and cannot be <0. Detected by Coverity Scan. Issue 1026516. --- src/acl/Tree.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acl/Tree.cc b/src/acl/Tree.cc index 3a416aea27..4b79abaa94 100644 --- a/src/acl/Tree.cc +++ b/src/acl/Tree.cc @@ -22,7 +22,7 @@ Acl::Tree::lastAction() const allow_t Acl::Tree::actionAt(const Nodes::size_type pos) const { - assert(0 <= pos && pos < nodes.size()); + assert(pos < nodes.size()); if (actions.size()) { assert(actions.size() == nodes.size()); return actions[pos]; -- 2.47.2