[Scummvm-git-logs] scummvm master -> b6316270990671a3b6fcf50393368ffb5a8c5527
digitall
noreply at scummvm.org
Thu Mar 31 12:51:41 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:
b631627099 AGS: Fix GCC Signed vs. Unsigned Compiler Warnings in Memory Stream Code
Commit: b6316270990671a3b6fcf50393368ffb5a8c5527
https://github.com/scummvm/scummvm/commit/b6316270990671a3b6fcf50393368ffb5a8c5527
Author: D G Turner (digitall at scummvm.org)
Date: 2022-03-31T13:51:01+01:00
Commit Message:
AGS: Fix GCC Signed vs. Unsigned Compiler Warnings in Memory Stream Code
Changed paths:
engines/ags/shared/util/memory_stream.cpp
diff --git a/engines/ags/shared/util/memory_stream.cpp b/engines/ags/shared/util/memory_stream.cpp
index 30704814f9d..402f913d3cf 100644
--- a/engines/ags/shared/util/memory_stream.cpp
+++ b/engines/ags/shared/util/memory_stream.cpp
@@ -120,7 +120,7 @@ bool MemoryStream::Seek(soff_t offset, StreamSeek origin) {
}
size_t MemoryStream::Write(const void *buffer, size_t size) {
- if (!_buf || _pos >= _buf_sz) {
+ if (!_buf || _pos >= (soff_t)_buf_sz) {
return 0;
}
size = std::min(size, _buf_sz - (size_t)_pos);
@@ -131,7 +131,7 @@ size_t MemoryStream::Write(const void *buffer, size_t size) {
}
int32_t MemoryStream::WriteByte(uint8_t val) {
- if (!_buf || _pos >= _buf_sz) {
+ if (!_buf || _pos >= (soff_t)_buf_sz) {
return -1;
}
*(_buf + _pos) = val;
More information about the Scummvm-git-logs
mailing list