From: Holger Schemel Date: Mon, 17 Jun 2024 06:32:19 +0000 (+0200) Subject: fixed compiler warning X-Git-Tag: 4.4.0.0-test-2~4 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=ed44c040b637f60a46e9051d1e939e62d3646a0b;p=rocksndiamonds.git fixed compiler warning --- diff --git a/src/libgame/zip/ioapi.c b/src/libgame/zip/ioapi.c index 20da1524..5a31fcbf 100644 --- a/src/libgame/zip/ioapi.c +++ b/src/libgame/zip/ioapi.c @@ -123,7 +123,7 @@ static voidpf ZCALLBACK fopen64_file_func(ZIP_UNUSED voidpf opaque, const void * { const char *fd_prefix = "fd:"; if (strncmp(filename, fd_prefix, strlen(fd_prefix)) == 0) - file = fdopen(dup(atoi(&filename[strlen(fd_prefix)])), mode_fopen); + file = fdopen(dup(atoi(&((const char*)filename)[strlen(fd_prefix)])), mode_fopen); else file = fopen64((const char*)filename, mode_fopen); return file_build_ioposix(file, (const char*)filename);