Skip to content

Commit 11152de

Browse files
alexetaschackmull
andauthored
Update cpp/ql/test/library-tests/ir/range-analysis/SimpleRangeAnalysis_tests.cpp
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent fb0f9ec commit 11152de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/test/library-tests/ir/range-analysis/SimpleRangeAnalysis_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ void test_guard_after_use(int pos, int size, int offset) {
10361036
if (pos + offset >= size) { // $ overflow=+-
10371037
return;
10381038
}
1039-
if (offset == 1) {
1039+
if (offset != 1) {
10401040
return;
10411041
}
10421042
range(pos + 1); // $ overflow=+ range="==InitializeParameter: pos+1" MISSING: range="<=InitializeParameter: size-1"

0 commit comments

Comments
 (0)