mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
Fix a sign-compare compiler warning
This commit is contained in:
parent
cfe29c2488
commit
40b41964f9
1 changed files with 2 additions and 3 deletions
|
@ -555,16 +555,15 @@ TraversalCode RD_Decorate::PostStmt(const Stmt* s)
|
||||||
auto init = s->AsInitStmt();
|
auto init = s->AsInitStmt();
|
||||||
auto& inits = init->Inits();
|
auto& inits = init->Inits();
|
||||||
|
|
||||||
for ( int i = 0; i < inits.size(); ++i )
|
for ( const auto& id : inits )
|
||||||
{
|
{
|
||||||
auto id = inits[i].get();
|
|
||||||
auto id_t = id->GetType();
|
auto id_t = id->GetType();
|
||||||
|
|
||||||
// Only aggregates get initialized.
|
// Only aggregates get initialized.
|
||||||
if ( ! zeek::IsAggr(id_t->Tag()) )
|
if ( ! zeek::IsAggr(id_t->Tag()) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
CreateInitPostDef(id, DefinitionPoint(s), false, 0);
|
CreateInitPostDef(id.get(), DefinitionPoint(s), false, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue