Fix gcc warning on stat (32 bits)

pull/687/head
Gabi Melman 7 years ago committed by GitHub
parent 64c2fe180b
commit b416685d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -244,9 +244,8 @@ inline size_t filesize(FILE *f)
return static_cast<size_t>(st.st_size);
}
#else // unix 32 bits or cygwin
struct stat st
{
};
struct stat st;
if (fstat(fd, &st) == 0)
{
return static_cast<size_t>(st.st_size);

Loading…
Cancel
Save