diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-29 10:44:08 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-29 10:44:08 +0200 |
commit | 5bcd019ee9151b9040dc91e2aa4aef4cbbaa25fe (patch) | |
tree | c9d6993e13391e4a22551992d9ce6c82a045dfe8 /core | |
parent | de31edb780f40172d3501079825993b5b8a6b1ee (diff) | |
parent | 8a9659b1528f6f8c1bd4bb560eeaec2f3f7b771c (diff) |
Merge pull request #66552 from bruvzg/64_bitfields
Change BitField to use 64-bit int.
Diffstat (limited to 'core')
-rw-r--r-- | core/variant/type_info.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/variant/type_info.h b/core/variant/type_info.h index 7372c60754..05ed6559fd 100644 --- a/core/variant/type_info.h +++ b/core/variant/type_info.h @@ -284,14 +284,14 @@ inline StringName __constant_get_enum_name(T param, const String &p_constant) { template <class T> class BitField { - uint32_t value = 0; + int64_t value = 0; public: _FORCE_INLINE_ void set_flag(T p_flag) { value |= p_flag; } _FORCE_INLINE_ bool has_flag(T p_flag) const { return value & p_flag; } _FORCE_INLINE_ void clear_flag(T p_flag) { return value &= ~p_flag; } - _FORCE_INLINE_ BitField(uint32_t p_value) { value = p_value; } - _FORCE_INLINE_ operator uint32_t() const { return value; } + _FORCE_INLINE_ BitField(int64_t p_value) { value = p_value; } + _FORCE_INLINE_ operator int64_t() const { return value; } _FORCE_INLINE_ operator Variant() const { return value; } }; |