[Scummvm-git-logs] scummvm master -> a69311b4c1155148392cf610c671fa92dd965bc9
digitall
noreply at scummvm.org
Fri Jun 24 22:12:39 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:
a69311b4c1 AGS: Fix Signed vs. Unsigned Comparison GCC Warning
Commit: a69311b4c1155148392cf610c671fa92dd965bc9
https://github.com/scummvm/scummvm/commit/a69311b4c1155148392cf610c671fa92dd965bc9
Author: D G Turner (digitall at scummvm.org)
Date: 2022-06-24T23:12:06+01:00
Commit Message:
AGS: Fix Signed vs. Unsigned Comparison GCC Warning
Changed paths:
engines/ags/engine/debugging/debug.cpp
diff --git a/engines/ags/engine/debugging/debug.cpp b/engines/ags/engine/debugging/debug.cpp
index b299871dab4..e483c91d6c6 100644
--- a/engines/ags/engine/debugging/debug.cpp
+++ b/engines/ags/engine/debugging/debug.cpp
@@ -410,11 +410,11 @@ int check_for_messages_from_editor() {
int lineNumber = atoi(msgPtr);
if (isDelete) {
- for (i = 0; i < _G(numBreakpoints); i++) {
- if ((_G(breakpoints)[i].lineNumber == lineNumber) &&
- (strcmp(_G(breakpoints)[i].scriptName, scriptNameBuf) == 0)) {
+ for (int j = 0; j < _G(numBreakpoints); j++) {
+ if ((_G(breakpoints)[j].lineNumber == lineNumber) &&
+ (strcmp(_G(breakpoints)[j].scriptName, scriptNameBuf) == 0)) {
_G(numBreakpoints)--;
- _G(breakpoints).erase(_G(breakpoints).begin() + i);
+ _G(breakpoints).erase(_G(breakpoints).begin() + j);
break;
}
}
More information about the Scummvm-git-logs
mailing list