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

digitall noreply at scummvm.org
Wed Apr 27 22:17:10 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:
f6acfd3894 AGS: Fix Remaining Signed vs. Unsigned Comparison GCC Compiler Warning


Commit: f6acfd389401889899ff4288426a8bdf73ce9937
    https://github.com/scummvm/scummvm/commit/f6acfd389401889899ff4288426a8bdf73ce9937
Author: D G Turner (digitall at scummvm.org)
Date: 2022-04-27T23:16:38+01:00

Commit Message:
AGS: Fix Remaining Signed vs. Unsigned Comparison GCC Compiler Warning

Changed paths:
    engines/ags/shared/util/text_stream_reader.cpp


diff --git a/engines/ags/shared/util/text_stream_reader.cpp b/engines/ags/shared/util/text_stream_reader.cpp
index fb1dfc2c9a7..79d8f34dfe0 100644
--- a/engines/ags/shared/util/text_stream_reader.cpp
+++ b/engines/ags/shared/util/text_stream_reader.cpp
@@ -110,7 +110,7 @@ String TextStreamReader::ReadLine() {
 }
 
 String TextStreamReader::ReadAll() {
-	size_t len = Math::InRangeOrDef<size_t>(_stream->GetLength() - _stream->GetPosition(), SIZE_MAX);
+	size_t len = Math::InRangeOrDef<size_t>((size_t)(_stream->GetLength() - _stream->GetPosition()), SIZE_MAX);
 	return ReadString(len);
 }
 




More information about the Scummvm-git-logs mailing list