From bd3ac0f8129b163c0131f865e60550996791747a Mon Sep 17 00:00:00 2001 From: elasota Date: Wed, 5 Jul 2023 22:33:41 -0400 Subject: [PATCH] HYPNO: Fix signed/unsigned conversion --- engines/hypno/grammar_mis.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/hypno/grammar_mis.y b/engines/hypno/grammar_mis.y index 5ad0c8d5f9c..66a1b6bd274 100644 --- a/engines/hypno/grammar_mis.y +++ b/engines/hypno/grammar_mis.y @@ -76,7 +76,7 @@ init: { if (smenu_idx) delete smenu_idx; smenu_idx = new Common::Array(); - smenu_idx->push_back(-1); + smenu_idx->push_back((uint32)-1); if (stack) delete stack; stack = new Hypno::HotspotsStack(); @@ -134,7 +134,7 @@ line: MENUTOK mflag mflag mflag { Hotspots *cur = stack->back(); Hotspot *hot = &(*cur)[idx]; - smenu_idx->push_back(-1); + smenu_idx->push_back((uint32)-1); hot->smenu = new Hotspots(); stack->push_back(hot->smenu); debugC(1, kHypnoDebugParser, "SUBMENU");