[Scummvm-git-logs] scummvm master -> 819b4230bc96240200810e21abd07bd9f8e33998

digitall 547637+digitall at users.noreply.github.com
Sat Apr 17 00:28:43 UTC 2021


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:
819b4230bc AGS: Fix GCC Compiler Warning


Commit: 819b4230bc96240200810e21abd07bd9f8e33998
    https://github.com/scummvm/scummvm/commit/819b4230bc96240200810e21abd07bd9f8e33998
Author: D G Turner (digitall at scummvm.org)
Date: 2021-04-17T01:28:41+01:00

Commit Message:
AGS: Fix GCC Compiler Warning

Changed paths:
    engines/ags/engine/ac/overlay.cpp


diff --git a/engines/ags/engine/ac/overlay.cpp b/engines/ags/engine/ac/overlay.cpp
index 1b2b2ab640..0574e8846b 100644
--- a/engines/ags/engine/ac/overlay.cpp
+++ b/engines/ags/engine/ac/overlay.cpp
@@ -194,7 +194,7 @@ size_t add_screen_overlay(int x, int y, int type, Shared::Bitmap *piccy, int pic
 	if (type == OVER_TEXTMSG) _G(is_text_overlay)++;
 	if (type == OVER_CUSTOM) {
 		// find an unused custom ID; TODO: find a better approach!
-		for (int id = OVER_CUSTOM + 1; id <= _GP(screenover).size() + OVER_CUSTOM + 1; ++id) {
+		for (size_t id = OVER_CUSTOM + 1; id <= _GP(screenover).size() + OVER_CUSTOM + 1; ++id) {
 			if (find_overlay_of_type(id) == -1) {
 				type = id;
 				break;




More information about the Scummvm-git-logs mailing list