diff options
author | rtk0c <[email protected]> | 2022-05-29 16:14:26 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-29 16:14:26 -0700 |
commit | 66b63ae887f553e1cac813546a6b827a9c85d80c (patch) | |
tree | c404dd9cc6a74853f8ea409cdeeb1419b04cef44 /source-common | |
parent | 1a6f1ea3b76c3ed4cad5aba5502af390ce50a2c0 (diff) |
Changeset: 43 Add tostring code gen for enums
Diffstat (limited to 'source-common')
-rw-r--r-- | source-common/Enum.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source-common/Enum.hpp b/source-common/Enum.hpp index e8750f2..8ad75ba 100644 --- a/source-common/Enum.hpp +++ b/source-common/Enum.hpp @@ -18,7 +18,7 @@ public: } EnumFlags(TEnum e) - : mValue{ 1 << static_cast<Underlying>(e) } { + : mValue{ static_cast<Underlying>(1) << static_cast<Underlying>(e) } { } bool IsSet(EnumFlags mask) const { |