From 0bdc268a00cf608c3db063fa6d7eb2aa584fa2be Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Sun, 7 Nov 2021 17:49:30 -0800 Subject: [PATCH] geez sometimes it's signed sometimes it's not --- src/script_opt/CPP/InitsInfo.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/script_opt/CPP/InitsInfo.cc b/src/script_opt/CPP/InitsInfo.cc index 4c2685afaf..4eb670de37 100644 --- a/src/script_opt/CPP/InitsInfo.cc +++ b/src/script_opt/CPP/InitsInfo.cc @@ -185,7 +185,7 @@ ListConstInfo::ListConstInfo(CPPCompile* _c, ValPtr v) : CompoundItemInfo(_c) auto lv = cast_intrusive(v); auto n = lv->Length(); - for ( auto i = 0U; i < n; ++i ) + for ( auto i = 0; i < n; ++i ) vals.emplace_back(ValElem(c, lv->Idx(i))); } @@ -194,7 +194,7 @@ VectorConstInfo::VectorConstInfo(CPPCompile* c, ValPtr v) : CompoundItemInfo(c, auto vv = cast_intrusive(v); auto n = vv->Size(); - for ( auto i = 0; i < n; ++i ) + for ( auto i = 0U; i < n; ++i ) vals.emplace_back(ValElem(c, vv->ValAt(i))); } @@ -205,7 +205,7 @@ RecordConstInfo::RecordConstInfo(CPPCompile* c, ValPtr v) : CompoundItemInfo(c, type = c->TypeOffset(r->GetType()); - for ( auto i = 0; i < n; ++i ) + for ( auto i = 0U; i < n; ++i ) vals.emplace_back(ValElem(c, r->GetField(i))); }