[Scummvm-git-logs] scummvm master -> 6f2556a8b0ef1ecf62befc5de253e6cb86c512f3

sev- noreply at scummvm.org
Sat Sep 6 10:41:02 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
6f2556a8b0 BAGEL: Fix AmigaOS compilation


Commit: 6f2556a8b0ef1ecf62befc5de253e6cb86c512f3
    https://github.com/scummvm/scummvm/commit/6f2556a8b0ef1ecf62befc5de253e6cb86c512f3
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-09-06T12:40:49+02:00

Commit Message:
BAGEL: Fix AmigaOS compilation

Changed paths:
    engines/bagel/mfc/bitmap.cpp


diff --git a/engines/bagel/mfc/bitmap.cpp b/engines/bagel/mfc/bitmap.cpp
index a960896cf69..f52b6e68c3a 100644
--- a/engines/bagel/mfc/bitmap.cpp
+++ b/engines/bagel/mfc/bitmap.cpp
@@ -101,7 +101,7 @@ int CBitmap::GetObject(int nCount, LPVOID lpObject) const {
 
 LONG CBitmap::GetBitmapBits(LONG dwCount, LPVOID lpBits) const {
 	const CBitmap::Impl *src = static_cast<CBitmap::Impl *>(m_hObject);
-	dwCount = MIN((int)dwCount, src->pitch * src->h * src->format.bytesPerPixel);
+	dwCount = MIN<int32>((int32)dwCount, src->pitch * src->h * src->format.bytesPerPixel);
 
 	Common::copy((const byte *)src->getPixels(),
 		(const byte *)src->getPixels() + dwCount,




More information about the Scummvm-git-logs mailing list