aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/neighborhood
diff options
context:
space:
mode:
authorJohannes Schickel2013-01-09 06:50:35 +0100
committerJohannes Schickel2013-01-09 07:24:37 +0100
commit7b18d4a4683b6d4ce9767c7c329cfa03d9dea6d7 (patch)
tree9e42a790683a72cc6f0241a82ed2ab756fad5e17 /engines/pegasus/neighborhood
parentfa967e92b72d1e76cc0775e626c552f5bd9d4d0b (diff)
downloadscummvm-rg350-7b18d4a4683b6d4ce9767c7c329cfa03d9dea6d7.tar.gz
scummvm-rg350-7b18d4a4683b6d4ce9767c7c329cfa03d9dea6d7.tar.bz2
scummvm-rg350-7b18d4a4683b6d4ce9767c7c329cfa03d9dea6d7.zip
PEGASUS: Silence C++11 narrowing warnings.
Diffstat (limited to 'engines/pegasus/neighborhood')
-rw-r--r--engines/pegasus/neighborhood/mars/reactor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/pegasus/neighborhood/mars/reactor.cpp b/engines/pegasus/neighborhood/mars/reactor.cpp
index 334fb98879..3a7ef9d7eb 100644
--- a/engines/pegasus/neighborhood/mars/reactor.cpp
+++ b/engines/pegasus/neighborhood/mars/reactor.cpp
@@ -244,9 +244,9 @@ void ReactorHistory::draw(const Common::Rect &) {
static const CoordType kColorTops[5] = {
0,
kColorHeights[0],
- kColorHeights[0] + kColorHeights[1],
- kColorHeights[0] + kColorHeights[1] + kColorHeights[2],
- kColorHeights[0] + kColorHeights[1] + kColorHeights[2] + kColorHeights[3],
+ (CoordType)(kColorHeights[0] + kColorHeights[1]),
+ (CoordType)(kColorHeights[0] + kColorHeights[1] + kColorHeights[2]),
+ (CoordType)(kColorHeights[0] + kColorHeights[1] + kColorHeights[2] + kColorHeights[3]),
};
if (_colors.isSurfaceValid() && _digits.isSurfaceValid()) {