mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
fix for fencepost error when looping over vectors
This commit is contained in:
parent
b6f4f897c6
commit
53fea053de
1 changed files with 1 additions and 1 deletions
|
@ -1324,7 +1324,7 @@ ValPtr ForStmt::DoExec(Frame* f, Val* v, StmtFlowType& flow) const
|
||||||
{
|
{
|
||||||
VectorVal* vv = v->AsVectorVal();
|
VectorVal* vv = v->AsVectorVal();
|
||||||
|
|
||||||
for ( auto i = 0u; i <= vv->Size(); ++i )
|
for ( auto i = 0u; i < vv->Size(); ++i )
|
||||||
{
|
{
|
||||||
// Set the loop variable to the current index, and make
|
// Set the loop variable to the current index, and make
|
||||||
// another pass over the loop body.
|
// another pass over the loop body.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue