From 9a4fe1c4758e0aabaed25f4590d32bcfa716979b Mon Sep 17 00:00:00 2001 From: Nick Hastings Date: Wed, 12 Dec 2018 20:02:23 -0500 Subject: [PATCH] Fix signed/unsigned compare on Windows. --- core/HalfLife2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/HalfLife2.cpp b/core/HalfLife2.cpp index e24d4bf9..d9b5c6dd 100644 --- a/core/HalfLife2.cpp +++ b/core/HalfLife2.cpp @@ -1200,7 +1200,7 @@ bool IsWindowsReservedDeviceName(const char *pMapname) }; size_t reservedCount = sizeof(reservedDeviceNames) / sizeof(reservedDeviceNames[0]); - for (int i = 0; i < reservedCount; ++i) + for (size_t i = 0; i < reservedCount; ++i) { if (CheckReservedFilename(pMapname, reservedDeviceNames[i])) {