1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0032907: Coding Rules - eliminate MSVC warning C5054 on VS2019/C++20 (operator &,|: deprecated between enumerations of different types)

operator `&`,`|`: deprecated between enumerations of different types
This commit is contained in:
ddzama
2022-03-30 10:06:01 +03:00
committed by smoskvin
parent e9a13cf123
commit 9416ba5fb0
6 changed files with 160 additions and 139 deletions

View File

@@ -96,7 +96,7 @@ public:
void Orientation (const Standard_Integer I, const TopAbs_Orientation Or)
{
myFlags(I) &= ~EMaskOrient;
myFlags(I) |= (Or & EMaskOrient);
myFlags(I) |= ((Standard_Integer)Or & (Standard_Integer)EMaskOrient);
}
TopAbs_Orientation Orientation (const Standard_Integer I) const