From bb43d60064fd11c00e27dbd7669f7d05f4f43678 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Thu, 6 Feb 2025 16:37:36 +0000 Subject: [PATCH] Codechange: Allow EnumBitSet to work with 64 bit underlying type. --- src/core/enum_type.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/enum_type.hpp b/src/core/enum_type.hpp index 851dd5618f..804a04fb80 100644 --- a/src/core/enum_type.hpp +++ b/src/core/enum_type.hpp @@ -144,7 +144,7 @@ public: */ inline constexpr EnumBitSet &Set(Tenum value) { - this->data |= (1U << to_underlying(value)); + this->data |= (1ULL << to_underlying(value)); return *this; } @@ -155,7 +155,7 @@ public: */ inline constexpr EnumBitSet &Reset(Tenum value) { - this->data &= ~(1U << to_underlying(value)); + this->data &= ~(1ULL << to_underlying(value)); return *this; } @@ -180,7 +180,7 @@ public: */ inline constexpr bool Test(Tenum value) const { - return (this->data & (1U << to_underlying(value))) != 0; + return (this->data & (1ULL << to_underlying(value))) != 0; } /**