summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2022-12-06 19:40:35 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2022-12-12 12:12:26 +0100
commit2095ca26d058bb58b804258c72291157ca0d8fc4 (patch)
treecc0c4cd8fa766b00de0b9b9a459f96c7891fa377 /core/variant
parent97df6de4a77393069c639a57d22bebb2f6f54680 (diff)
Add default, zeroing constructor to BitField
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/type_info.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/variant/type_info.h b/core/variant/type_info.h
index e355053296..8e2d150430 100644
--- a/core/variant/type_info.h
+++ b/core/variant/type_info.h
@@ -290,6 +290,7 @@ 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() = default;
_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; }