diff options
author | Johannes Schickel | 2013-01-09 06:50:35 +0100 |
---|---|---|
committer | Johannes Schickel | 2013-01-09 07:24:37 +0100 |
commit | 7b18d4a4683b6d4ce9767c7c329cfa03d9dea6d7 (patch) | |
tree | 9e42a790683a72cc6f0241a82ed2ab756fad5e17 | |
parent | fa967e92b72d1e76cc0775e626c552f5bd9d4d0b (diff) | |
download | scummvm-rg350-7b18d4a4683b6d4ce9767c7c329cfa03d9dea6d7.tar.gz scummvm-rg350-7b18d4a4683b6d4ce9767c7c329cfa03d9dea6d7.tar.bz2 scummvm-rg350-7b18d4a4683b6d4ce9767c7c329cfa03d9dea6d7.zip |
PEGASUS: Silence C++11 narrowing warnings.
-rw-r--r-- | engines/pegasus/neighborhood/mars/reactor.cpp | 6 |
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()) { |