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:
Erwin Coumans
2018-11-28 15:40:20 -08:00
parent dc642c6e65
commit 2d07fc1f64

View File

@@ -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