Add missing cast.

pull/4434/head
Kim Kulling 2022-03-10 10:33:29 +01:00 committed by GitHub
parent c14eccefaf
commit 47f004517f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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); 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); 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] != '.') if (disk_filename[i] != '.')
continue; continue;