diff options
author | Thanasis Antoniou | 2019-04-03 00:02:44 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-04-03 00:02:44 +0300 |
commit | d9e6e9f0e82bbc7e9d44ea2c608c1b8ba49e9f28 (patch) | |
tree | 895c8d68b77316882d10c40c47f38c68477076f8 /engines/bladerunner/ui/esper.cpp | |
parent | d6db4af528763e77796f5f35a2144c4a012e76e4 (diff) | |
download | scummvm-rg350-d9e6e9f0e82bbc7e9d44ea2c608c1b8ba49e9f28.tar.gz scummvm-rg350-d9e6e9f0e82bbc7e9d44ea2c608c1b8ba49e9f28.tar.bz2 scummvm-rg350-d9e6e9f0e82bbc7e9d44ea2c608c1b8ba49e9f28.zip |
BLADERUNNER: Fix warning in Big Endianess platform
Diffstat (limited to 'engines/bladerunner/ui/esper.cpp')
-rw-r--r-- | engines/bladerunner/ui/esper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/bladerunner/ui/esper.cpp b/engines/bladerunner/ui/esper.cpp index 929601677f..472e726fdb 100644 --- a/engines/bladerunner/ui/esper.cpp +++ b/engines/bladerunner/ui/esper.cpp @@ -1423,12 +1423,12 @@ void ESPER::selectPhoto(int photoId) { reset(); } - int photoSize = _surfacePhoto.w * _surfacePhoto.h * _surfacePhoto.format.bytesPerPixel; + uint photoSize = _surfacePhoto.w * _surfacePhoto.h * _surfacePhoto.format.bytesPerPixel; s->skip(3); // not used, but there is compression type uint width = s->readUint32LE(); uint height = s->readUint32LE(); - int photoCompressedSize = s->size() - s->pos(); + uint photoCompressedSize = s->size() - s->pos(); uint8 *photoCompressed = (uint8 *)_surfacePhoto.getPixels() + photoSize - photoCompressedSize; s->read(photoCompressed, photoCompressedSize); |