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

rvanlaar noreply at scummvm.org
Thu Sep 29 13:52:32 UTC 2022


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:
f1715e368d DIRECTOR: fix sign of integer


Commit: f1715e368dd51d54245c275af8d1d058bb8e88df
    https://github.com/scummvm/scummvm/commit/f1715e368dd51d54245c275af8d1d058bb8e88df
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2022-09-29T15:51:08+02:00

Commit Message:
DIRECTOR: fix sign of integer

Make `size` an int32. `f->size` is an int32 and can be -1.

Changed paths:
    engines/director/game-quirks.cpp


diff --git a/engines/director/game-quirks.cpp b/engines/director/game-quirks.cpp
index a5ab50552bc..e742ca32cab 100644
--- a/engines/director/game-quirks.cpp
+++ b/engines/director/game-quirks.cpp
@@ -124,7 +124,7 @@ void DirectorEngine::gameQuirks(const char *target, Common::Platform platform) {
 	for (auto f = cachedFiles; f->target != nullptr; f++) {
 		if (f->platform == Common::kPlatformUnknown || f->platform == platform)
 			if (!strcmp(f->target, target)) {
-				uint32 size = f->size;
+				int32 size = f->size;
 				if (size == -1)
 					size = strlen((const char *)f->data);
 				list.push_back(CachedArchive::InputEntry(f->fileName, f->data, size));




More information about the Scummvm-git-logs mailing list