Skip to content

Commit a455bb2

Browse files
fixup! Fix #8260 Improve check: Pointer calculation result not null
1 parent 6c5d17b commit a455bb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/testcondition.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6038,7 +6038,7 @@ class TestCondition : public TestFixture {
60386038
" if (0 != q);\n"
60396039
"}");
60406040
ASSERT_EQUALS("[test.cpp:3:9]: (warning) Comparison is wrong. Result of 'p+1' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull]\n", errout_str());
6041-
}
6041+
}
60426042

60436043
void duplicateConditionalAssign() {
60446044
setMultiline();

0 commit comments

Comments
 (0)