[Scummvm-git-logs] scummvm master -> d5277a95c06522547a8ee248f32faf7567c3fffb
digitall
noreply at scummvm.org
Mon Dec 19 00:08:38 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:
d5277a95c0 AGS: Fix Enumerated Type Comparison Mismatch GCC Compiler Warning
Commit: d5277a95c06522547a8ee248f32faf7567c3fffb
https://github.com/scummvm/scummvm/commit/d5277a95c06522547a8ee248f32faf7567c3fffb
Author: D G Turner (digitall at scummvm.org)
Date: 2022-12-19T00:07:37Z
Commit Message:
AGS: Fix Enumerated Type Comparison Mismatch GCC Compiler Warning
This is emitted when -Wenum-compare is passed to GCC.
Changed paths:
engines/ags/engine/ac/label.cpp
diff --git a/engines/ags/engine/ac/label.cpp b/engines/ags/engine/ac/label.cpp
index ceb59287bc2..db9edc3dc0d 100644
--- a/engines/ags/engine/ac/label.cpp
+++ b/engines/ags/engine/ac/label.cpp
@@ -54,8 +54,8 @@ void Label_SetText(GUILabel *labl, const char *newtx) {
int Label_GetTextAlignment(GUILabel *labl) {
return (_G(loaded_game_file_version) >= kGameVersion_350) ?
- labl->TextAlignment :
- GetLegacyGUIAlignment(labl->TextAlignment);
+ (int)labl->TextAlignment :
+ (int)GetLegacyGUIAlignment(labl->TextAlignment);
}
void Label_SetTextAlignment(GUILabel *labl, int align) {
More information about the Scummvm-git-logs
mailing list