mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024177: Eliminate CLang compiler warning -Wlogical-op-parentheses (&& within ||)
Some fixes to eliminate warning
This commit is contained in:
@@ -18,6 +18,6 @@
|
||||
|
||||
inline Standard_Boolean Quantity_Date::IsLeap (const Standard_Integer yy){
|
||||
|
||||
return ( ( yy % 4 == 0 && yy % 100 != 0 || yy % 400 == 0)
|
||||
? Standard_True : Standard_False );
|
||||
return (((yy % 4 == 0) && (yy % 100 != 0)) || (yy % 400) == 0)
|
||||
? Standard_True : Standard_False;
|
||||
}
|
||||
|
Reference in New Issue
Block a user