mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
geez sometimes it's signed sometimes it's not
This commit is contained in:
parent
ab1a29184c
commit
0bdc268a00
1 changed files with 3 additions and 3 deletions
|
@ -185,7 +185,7 @@ ListConstInfo::ListConstInfo(CPPCompile* _c, ValPtr v) : CompoundItemInfo(_c)
|
||||||
auto lv = cast_intrusive<ListVal>(v);
|
auto lv = cast_intrusive<ListVal>(v);
|
||||||
auto n = lv->Length();
|
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)));
|
vals.emplace_back(ValElem(c, lv->Idx(i)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ VectorConstInfo::VectorConstInfo(CPPCompile* c, ValPtr v) : CompoundItemInfo(c,
|
||||||
auto vv = cast_intrusive<VectorVal>(v);
|
auto vv = cast_intrusive<VectorVal>(v);
|
||||||
auto n = vv->Size();
|
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)));
|
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());
|
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)));
|
vals.emplace_back(ValElem(c, r->GetField(i)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue