Unverified Commit 247c4e55 authored by Adi Lester's avatar Adi Lester Committed by GitHub

Update os.h

parent 26d7c27b
...@@ -210,7 +210,7 @@ inline size_t filesize(FILE *f) ...@@ -210,7 +210,7 @@ inline size_t filesize(FILE *f)
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)
int fd = _fileno(f); int fd = _fileno(f);
#if _WIN64 // 64 bits #if _WIN64 // 64 bits
long long ret = _filelengthi64(fd); __int64 ret = _filelengthi64(fd);
if (ret >= 0) if (ret >= 0)
{ {
return static_cast<size_t>(ret); return static_cast<size_t>(ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment