[Scummvm-git-logs] scummvm master -> 8424ea0b1b0a009f10fe12023b9934cf07743454

mduggan mgithub at guarana.org
Sun May 3 02:34:34 UTC 2020


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:
8424ea0b1b ULTIMA8: Add cast to supress warning


Commit: 8424ea0b1b0a009f10fe12023b9934cf07743454
    https://github.com/scummvm/scummvm/commit/8424ea0b1b0a009f10fe12023b9934cf07743454
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2020-05-03T11:34:25+09:00

Commit Message:
ULTIMA8: Add cast to supress warning

Changed paths:
    engines/ultima/ultima8/world/map_glob.cpp


diff --git a/engines/ultima/ultima8/world/map_glob.cpp b/engines/ultima/ultima8/world/map_glob.cpp
index d38e7a2ec8..10ed5813eb 100644
--- a/engines/ultima/ultima8/world/map_glob.cpp
+++ b/engines/ultima/ultima8/world/map_glob.cpp
@@ -37,7 +37,7 @@ MapGlob::~MapGlob() {
 
 void MapGlob::read(Common::SeekableReadStream *rs) {
 	unsigned int itemcount = rs->readUint16LE();
-	assert(rs->size() >= 2 + itemcount * 6);
+	assert(rs->size() >= static_cast<int32>(2 + itemcount * 6));
 	_contents.clear();
 	_contents.resize(itemcount);
 




More information about the Scummvm-git-logs mailing list