mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-22 13:33:52 +03:00
F #4845: Fix ActionSet class
This commit is contained in:
parent
b516e36ea9
commit
ee5f9fa57d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user