From ee5f9fa57d804acedf0cb89932a734b6519816ed Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 31 Jan 2017 22:12:35 +0100 Subject: [PATCH] F #4845: Fix ActionSet class --- include/ActionSet.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ActionSet.h b/include/ActionSet.h index f0ef82d682..94aa8224e0 100644 --- a/include/ActionSet.h +++ b/include/ActionSet.h @@ -42,12 +42,12 @@ public: /* Set the action in the set */ void set(T action) { - action_set |= 1 << static_cast(action); + action_set |= 1UL << static_cast(action); }; void clear(T action) { - action_set &= (~ (1 << static_cast(action))); + action_set &= (~ (1UL << static_cast(action))); }; /** @@ -57,7 +57,7 @@ public: */ bool is_set(T action) const { - return (action_set & (1 << static_cast(action))) != 0; + return (action_set & (1UL << static_cast(action))) != 0; }; private: