Merge pull request #61757 from lawnjelly/unsigned_enums_fix

This commit is contained in:
Rémi Verschelde 2022-06-06 20:10:08 +02:00 committed by GitHub
commit 821f484ad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -50,7 +50,7 @@ class Transform;
class TransformInterpolator { class TransformInterpolator {
public: public:
enum Method { enum Method : unsigned int {
INTERP_LERP, INTERP_LERP,
INTERP_SLERP, INTERP_SLERP,
INTERP_SCALED_SLERP, INTERP_SCALED_SLERP,

View file

@ -48,14 +48,18 @@ class Node : public Object {
OBJ_CATEGORY("Nodes"); OBJ_CATEGORY("Nodes");
public: public:
enum PauseMode { // N.B. Any enum stored as a bitfield should
// be specified as UNSIGNED to work around
// some compilers trying to store it as signed,
// and requiring 1 more bit than necessary.
enum PauseMode : unsigned int {
PAUSE_MODE_INHERIT, PAUSE_MODE_INHERIT,
PAUSE_MODE_STOP, PAUSE_MODE_STOP,
PAUSE_MODE_PROCESS PAUSE_MODE_PROCESS
}; };
enum PhysicsInterpolationMode { enum PhysicsInterpolationMode : unsigned int {
PHYSICS_INTERPOLATION_MODE_INHERIT, PHYSICS_INTERPOLATION_MODE_INHERIT,
PHYSICS_INTERPOLATION_MODE_OFF, PHYSICS_INTERPOLATION_MODE_OFF,