AD: Slightly Cleaner Fix for Signed vs. Unsigned Comparison Compiler Warning

This commit is contained in:
D G Turner 2022-07-31 21:28:51 +01:00
parent e9ad043a29
commit 4c3da7beed

View File

@ -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);