[Scummvm-git-logs] scummvm master -> e99d7f0a1d5a994afe557fd5e21669d469471b98
orgads
noreply at scummvm.org
Thu Jun 2 20:41:40 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:
e99d7f0a1d TINSEL: Silence signed/unsigned comparison compiler warning
Commit: e99d7f0a1d5a994afe557fd5e21669d469471b98
https://github.com/scummvm/scummvm/commit/e99d7f0a1d5a994afe557fd5e21669d469471b98
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2022-06-02T23:41:32+03:00
Commit Message:
TINSEL: Silence signed/unsigned comparison compiler warning
../scummvm/engines/tinsel/handle.cpp: In member function 'void Tinsel::Handle::LoadFile(Tinsel::MEMHANDLE*)':
../scummvm/engines/tinsel/handle.cpp:293:27: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
293 | if (bytes == (pH->filesize & FSIZE_MASK)) {
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Changed paths:
engines/tinsel/handle.cpp
diff --git a/engines/tinsel/handle.cpp b/engines/tinsel/handle.cpp
index 524c86569c7..e425c8535b5 100644
--- a/engines/tinsel/handle.cpp
+++ b/engines/tinsel/handle.cpp
@@ -290,7 +290,7 @@ void Handle::LoadFile(MEMHANDLE *pH) {
// set the loaded flag
MEMFLAGSET(pH, fLoaded);
- if (bytes == (pH->filesize & FSIZE_MASK)) {
+ if (bytes == int(pH->filesize & FSIZE_MASK)) {
return;
}
More information about the Scummvm-git-logs
mailing list