From 6d107901ed1393983d83df06781f5c6991b7d140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 25 Nov 2023 10:58:22 +0100 Subject: [PATCH] fix ci --- lib/symboldatabase.cpp | 2 +- test/cli/test-other.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 05d9b133b2e7..f478a236f0ed 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -1719,7 +1719,7 @@ void SymbolDatabase::createSymbolDatabaseExprIds() } // Mark expressions that are unique - std::vector> uniqueExprId((std::size_t)(id+10)); + std::vector> uniqueExprId(id); for (Token* tok = const_cast(scope->bodyStart); tok != scope->bodyEnd; tok = tok->next()) { const auto id2 = tok->exprId(); if (id2 == 0) diff --git a/test/cli/test-other.py b/test/cli/test-other.py index 9f12fc384a2e..a689bc92c084 100644 --- a/test/cli/test-other.py +++ b/test/cli/test-other.py @@ -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 {} @@ -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 {} @@ -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: }}