Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Nov 25, 2023
1 parent cda7660 commit 6d10790
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ void SymbolDatabase::createSymbolDatabaseExprIds()
}

// Mark expressions that are unique
std::vector<std::pair<Token*, int>> uniqueExprId((std::size_t)(id+10));
std::vector<std::pair<Token*, int>> uniqueExprId(id);
for (Token* tok = const_cast<Token*>(scope->bodyStart); tok != scope->bodyEnd; tok = tok->next()) {
const auto id2 = tok->exprId();
if (id2 == 0)
Expand Down
6 changes: 3 additions & 3 deletions test/cli/test-other.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ def test_valueflow_debug(tmpdir):
##file {}
2: void f2 ( )
3: {{
4: int i@var1 ; i@var1 =@expr1073741828 0 ;
4: int i@var1 ; i@var1 = 0 ;
5: }}
##file {}
Expand All @@ -752,7 +752,7 @@ def test_valueflow_debug(tmpdir):
2:
3: void f1 ( )
4: {{
5: int i@var2 ; i@var2 =@expr1073741829 0 ;
5: int i@var2 ; i@var2 = 0 ;
6: }}
##file {}
Expand All @@ -762,7 +762,7 @@ def test_valueflow_debug(tmpdir):
3:
4: void f ( )
5: {{
6: int i@var3 ; i@var3 =@expr1073741830 0 ;
6: int i@var3 ; i@var3 = 0 ;
7: }}
Expand Down

0 comments on commit 6d10790

Please sign in to comment.