diff options
Diffstat (limited to 'src/core/enum_type.hpp')
-rw-r--r-- | src/core/enum_type.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/enum_type.hpp b/src/core/enum_type.hpp index 717f2c5eb..bd059212c 100644 --- a/src/core/enum_type.hpp +++ b/src/core/enum_type.hpp @@ -94,7 +94,15 @@ struct TinyEnumT /** Assignment operator (from Tenum_t type) */ FORCEINLINE TinyEnumT& operator = (enum_type e) { - m_val = (storage_type)e; return *this; + m_val = (storage_type)e; + return *this; + } + + /** Assignment operator (from Tenum_t type) */ + FORCEINLINE TinyEnumT& operator = (uint u) + { + m_val = (storage_type)u; + return *this; } /** postfix ++ operator on tiny type */ |