Skip to content

Commit 67e27ba

Browse files
Partial fix for #11592 FN compareValueOutOfTypeRangeError with char (danmar#7706)
1 parent 2ae38ac commit 67e27ba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/checkcondition.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,8 +1936,7 @@ void CheckCondition::checkCompareValueOutOfTypeRange()
19361936
if (!mSettings->severity.isEnabled(Severity::style) && !mSettings->isPremiumEnabled("compareValueOutOfTypeRangeError"))
19371937
return;
19381938

1939-
if (mSettings->platform.type == Platform::Type::Native ||
1940-
mSettings->platform.type == Platform::Type::Unspecified)
1939+
if (mSettings->platform.type == Platform::Type::Unspecified)
19411940
return;
19421941

19431942
logChecker("CheckCondition::checkCompareValueOutOfTypeRange"); // style,platform

test/testcondition.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ class TestCondition : public TestFixture {
645645
"}");
646646
ASSERT_EQUALS("", errout_str());
647647

648-
check("void f(int i) {\n"
648+
check("void f(int64_t i) {\n"
649649
" if(i == 0x02e2000000 || i == 0xa0c6000000)\n"
650650
" foo(i);\n"
651651
"}");

0 commit comments

Comments
 (0)