ClangTidy
clang-diagnostic-shift-sign-overflow
signed shift result (0x80000000) sets the sign bit of the shift expression's type ('int') and becomes negative
This commit is contained in:
@@ -265,7 +265,7 @@ enum bt6DofFlags2
|
|||||||
BT_6DOF_FLAGS_ERP_STOP2 = 2,
|
BT_6DOF_FLAGS_ERP_STOP2 = 2,
|
||||||
BT_6DOF_FLAGS_CFM_MOTO2 = 4,
|
BT_6DOF_FLAGS_CFM_MOTO2 = 4,
|
||||||
BT_6DOF_FLAGS_ERP_MOTO2 = 8,
|
BT_6DOF_FLAGS_ERP_MOTO2 = 8,
|
||||||
BT_6DOF_FLAGS_USE_INFINITE_ERROR = (1<<31),
|
BT_6DOF_FLAGS_USE_INFINITE_ERROR = (1<<16),
|
||||||
};
|
};
|
||||||
#define BT_6DOF_FLAGS_AXIS_SHIFT2 4 // bits per axis
|
#define BT_6DOF_FLAGS_AXIS_SHIFT2 4 // bits per axis
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user