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<int>(action);
+        action_set |= 1UL << static_cast<int>(action);
     };
 
     void clear(T action)
     {
-        action_set &= (~ (1 << static_cast<int>(action)));
+        action_set &= (~ (1UL << static_cast<int>(action)));
     };
 
     /**
@@ -57,7 +57,7 @@ public:
      */
     bool is_set(T action) const
     {
-        return (action_set & (1 << static_cast<int>(action))) != 0;
+        return (action_set & (1UL << static_cast<int>(action))) != 0;
     };
 
 private: