From 4c3da7beed497fa87e0192aaaaf024435ac9f885 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sun, 31 Jul 2022 21:28:51 +0100 Subject: [PATCH] AD: Slightly Cleaner Fix for Signed vs. Unsigned Comparison Compiler Warning --- engines/advancedDetector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp index b5e9d207e64..fd4349752ac 100644 --- a/engines/advancedDetector.cpp +++ b/engines/advancedDetector.cpp @@ -847,7 +847,7 @@ void AdvancedMetaEngineDetection::preprocessDescriptions() { Common::StringTokenizer tok(fileDesc->fileName, "/"); - int depth = 0; + uint32 depth = 0; while (!tok.empty()) { Common::String component = tok.nextToken(); @@ -860,7 +860,7 @@ void AdvancedMetaEngineDetection::preprocessDescriptions() { depth++; } - if (depth > int(_maxScanDepth)) { + if (depth > _maxScanDepth) { _maxScanDepth = depth; debugC(4, kDebugGlobalDetection, " Increased scan depth to %d", _maxScanDepth);