From 47f004517fca061e89896f2244be32fe6a506eb9 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 10 Mar 2022 10:33:29 +0100 Subject: [PATCH] Add missing cast. --- code/Common/ZipArchiveIOSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Common/ZipArchiveIOSystem.cpp b/code/Common/ZipArchiveIOSystem.cpp index ba90ae9b3..e0c9883d2 100644 --- a/code/Common/ZipArchiveIOSystem.cpp +++ b/code/Common/ZipArchiveIOSystem.cpp @@ -126,7 +126,7 @@ voidpf IOSystem2Unzip::opendisk(voidpf opaque, voidpf stream, uint32_t number_di char *disk_filename = (char*)malloc(io_stream->m_Filename.length() + 1); strncpy(disk_filename, io_stream->m_Filename.c_str(), io_stream->m_Filename.length() + 1); - for (i = io_stream->m_Filename.length() - 1; i >= 0; i -= 1) + for (i = (int)io_stream->m_Filename.length() - 1; i >= 0; i -= 1) { if (disk_filename[i] != '.') continue;