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
This commit is contained in:
parent
636d774750
commit
28734dabee
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue