aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Utilities/Util.h
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2014-08-21 16:56:11 +0200
committerjackpoz <giacomopoz@gmail.com>2014-08-23 19:56:41 +0200
commit7fe7f30521503559dc8aee9f3127e11111f8ccc4 (patch)
treef4a75f563e89957d43cef93253bfc300ecf57339 /src/server/shared/Utilities/Util.h
parentf5f9df0483fbf847eb9ee4e6ec4ecc6cf66d3a47 (diff)
Core/Misc: Fix some -Wconversion warnings
Diffstat (limited to 'src/server/shared/Utilities/Util.h')
-rw-r--r--src/server/shared/Utilities/Util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/shared/Utilities/Util.h b/src/server/shared/Utilities/Util.h
index 0680b91e0fe..20c17b14023 100644
--- a/src/server/shared/Utilities/Util.h
+++ b/src/server/shared/Utilities/Util.h
@@ -618,7 +618,7 @@ class EventMap
if (!phase)
_phase = 0;
else if (phase <= 8)
- _phase = (1 << (phase - 1));
+ _phase = uint8(1 << (phase - 1));
}
/**
@@ -629,7 +629,7 @@ class EventMap
void AddPhase(uint8 phase)
{
if (phase && phase <= 8)
- _phase |= (1 << (phase - 1));
+ _phase |= uint8(1 << (phase - 1));
}
/**
@@ -640,7 +640,7 @@ class EventMap
void RemovePhase(uint8 phase)
{
if (phase && phase <= 8)
- _phase &= ~(1 << (phase - 1));
+ _phase &= uint8(~(1 << (phase - 1)));
}
/**