From 28734dabee5b1ef2e27057831f7ee733436ee560 Mon Sep 17 00:00:00 2001 From: anders_k Date: Sat, 21 Oct 2017 01:41:27 +0000 Subject: [PATCH] Cast away pointless warning because A) 0xffffffffUL will fit in a 64-bit off_t, or B) LONG_MAX is used git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6936 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/util.cpp b/Source/util.cpp index 94461453..66f1e5f1 100644 --- a/Source/util.cpp +++ b/Source/util.cpp @@ -683,7 +683,7 @@ UINT32 get_file_size32(FILE *f) result = (UINT32) size64; #elif _XOPEN_SOURCE >= 500 || _POSIX_C_SOURCE >= 200112L struct stat st; - if (0 == fstat(fileno(f), &st) && st.st_size <= (sizeof(st.st_size) >= 8 ? 0xffffffffUL : LONG_MAX)) + if (0 == fstat(fileno(f), &st) && st.st_size <= (sizeof(st.st_size) >= 8 ? (off_t)0xffffffffUL : LONG_MAX)) result = (UINT32) st.st_size; #else long cb, restoreseek = true;