aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/saveload.cpp
diff options
context:
space:
mode:
authorRobin Watts2008-11-29 18:01:16 +0000
committerRobin Watts2008-11-29 18:01:16 +0000
commit8f3b2e9b4d9f1f82682e1eed018153091cddee9f (patch)
treef2af64fa467e70a3ba25e9c615baa053e0818d88 /engines/scumm/saveload.cpp
parent362bdf87d78f611f3e308e7e9234831208b93d68 (diff)
downloadscummvm-rg350-8f3b2e9b4d9f1f82682e1eed018153091cddee9f.tar.gz
scummvm-rg350-8f3b2e9b4d9f1f82682e1eed018153091cddee9f.tar.bz2
scummvm-rg350-8f3b2e9b4d9f1f82682e1eed018153091cddee9f.zip
Remove warnings from NDS build.
svn-id: r35172
Diffstat (limited to 'engines/scumm/saveload.cpp')
-rw-r--r--engines/scumm/saveload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp
index 5fdd340fc9..577e338384 100644
--- a/engines/scumm/saveload.cpp
+++ b/engines/scumm/saveload.cpp
@@ -644,8 +644,8 @@ void ScummEngine::saveInfos(Common::WriteStream* file) {
tm curTime;
_system->getTimeAndDate(curTime);
- section.date = (curTime.tm_mday & 0xFF) << 24 | ((curTime.tm_mon + 1) & 0xFF) << 16 | (curTime.tm_year + 1900) & 0xFFFF;
- section.time = (curTime.tm_hour & 0xFF) << 8 | (curTime.tm_min) & 0xFF;
+ section.date = ((curTime.tm_mday & 0xFF) << 24) | (((curTime.tm_mon + 1) & 0xFF) << 16) | ((curTime.tm_year + 1900) & 0xFFFF);
+ section.time = ((curTime.tm_hour & 0xFF) << 8) | ((curTime.tm_min) & 0xFF);
file->writeUint32BE(section.type);
file->writeUint32BE(section.version);