File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1569,8 +1569,7 @@ bool Library::isCompliantValidationExpression(const char* p)
15691569 error |= (*(p + 1 ) == ' -' );
15701570 }
15711571 else if (*p == ' :' ) {
1572- // cppcheck-suppress bitwiseOnBoolean - TODO: fix this
1573- error |= range | (*(p + 1 ) == ' .' );
1572+ error |= range || (*(p + 1 ) == ' .' );
15741573 range = true ;
15751574 has_dot = false ;
15761575 has_E = false ;
@@ -1584,8 +1583,7 @@ bool Library::isCompliantValidationExpression(const char* p)
15841583 has_dot = false ;
15851584 has_E = false ;
15861585 } else if (*p == ' .' ) {
1587- // cppcheck-suppress bitwiseOnBoolean - TODO: fix this
1588- error |= has_dot | (!std::isdigit (*(p + 1 )));
1586+ error |= has_dot || (!std::isdigit (*(p + 1 )));
15891587 has_dot = true ;
15901588 } else if (*p == ' E' || *p == ' e' ) {
15911589 error |= has_E;
You can’t perform that action at this time.
0 commit comments