mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix a few minor int pointer value initializations
This commit is contained in:
parent
3b0e8ee6f1
commit
103b381874
2 changed files with 4 additions and 4 deletions
|
@ -100,9 +100,9 @@ TEST_CASE("list iteration")
|
||||||
TEST_CASE("plists")
|
TEST_CASE("plists")
|
||||||
{
|
{
|
||||||
zeek::PList<int> list;
|
zeek::PList<int> list;
|
||||||
list.push_back(new int(1));
|
list.push_back(new int{1});
|
||||||
list.push_back(new int(2));
|
list.push_back(new int{2});
|
||||||
list.push_back(new int(3));
|
list.push_back(new int{3});
|
||||||
|
|
||||||
CHECK(*list[0] == 1);
|
CHECK(*list[0] == 1);
|
||||||
|
|
||||||
|
|
|
@ -883,7 +883,7 @@ bool SwitchStmt::AddCaseLabelValueMapping(const Val* v, int idx)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
case_label_value_map[v] = idx;
|
case_label_value_map[v] = idx;
|
||||||
case_label_hash_map.Insert(hk.get(), new int(idx));
|
case_label_hash_map.Insert(hk.get(), new int{idx});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue