mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
0023266: cppcheck warning: Logical disjunction always evaluates to true
Logical disjunction changed to Logical conjunction, it evaluates true only then number of parameters isn't right.
This commit is contained in:
parent
8b595ab775
commit
a7ae5c810a
@ -101,7 +101,7 @@ static Standard_Integer QANewDBRepNaming_NameBooleanOperationFeat (Draw_Interpre
|
||||
Standard_Integer nb,
|
||||
const char ** arg)
|
||||
{
|
||||
if (nb != 6 || nb != 7) {
|
||||
if (nb != 6 && nb != 7) {
|
||||
di << "QANewDBRepNaming_NameBooleanOperationFeat : Error" << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user