[Scummvm-git-logs] scummvm master -> d9e6e9f0e82bbc7e9d44ea2c608c1b8ba49e9f28

antoniou79 antoniou at cti.gr
Tue Apr 2 23:03:53 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d9e6e9f0e8 BLADERUNNER: Fix warning in Big Endianess platform


Commit: d9e6e9f0e82bbc7e9d44ea2c608c1b8ba49e9f28
    https://github.com/scummvm/scummvm/commit/d9e6e9f0e82bbc7e9d44ea2c608c1b8ba49e9f28
Author: Thanasis Antoniou (a.antoniou79 at gmail.com)
Date: 2019-04-03T00:02:44+03:00

Commit Message:
BLADERUNNER: Fix warning in Big Endianess platform

Changed paths:
    engines/bladerunner/ui/esper.cpp


diff --git a/engines/bladerunner/ui/esper.cpp b/engines/bladerunner/ui/esper.cpp
index 9296016..472e726 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);
 





More information about the Scummvm-git-logs mailing list