mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Use properly-sized loop variables or convert to ranged-for (bugprone-too-small-loop-variable)
This commit is contained in:
parent
94c4c85e82
commit
1248411a2f
22 changed files with 89 additions and 95 deletions
|
@ -2699,7 +2699,7 @@ ValPtr IndexExpr::Fold(Val* v1, Val* v2) const
|
|||
{
|
||||
result->Resize(sub_length);
|
||||
|
||||
for ( int idx = first; idx < last; idx++ )
|
||||
for ( bro_int_t idx = first; idx < last; idx++ )
|
||||
result->Assign(idx - first, vect->At(idx));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue