From 1cd510822f33a91e30b53efa2e75c44d7e900dd1 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Sun, 9 Aug 2020 20:24:39 -0400 Subject: [PATCH] Fix always true comparison warning --- indra/llcorehttp/_httppolicy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/llcorehttp/_httppolicy.cpp b/indra/llcorehttp/_httppolicy.cpp index 885f0ed61d6..467db116b14 100644 --- a/indra/llcorehttp/_httppolicy.cpp +++ b/indra/llcorehttp/_httppolicy.cpp @@ -453,7 +453,7 @@ bool HttpPolicy::stageAfterCompletion(const HttpOpRequest::ptr_t &op) HttpPolicyClass & HttpPolicy::getClassOptions(HttpRequest::policy_t pclass) { - llassert_always(pclass >= 0 && pclass < mClasses.size()); + llassert_always(pclass < mClasses.size()); return mClasses[pclass]->mOptions; } -- GitLab