From 247c4e55e7d306947cbb3fc4964579a0df23701b Mon Sep 17 00:00:00 2001 From: Adi Lester Date: Tue, 27 Nov 2018 14:39:41 +0200 Subject: [PATCH] Update os.h --- include/spdlog/details/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h index 573224ad..646805e6 100644 --- a/include/spdlog/details/os.h +++ b/include/spdlog/details/os.h @@ -210,7 +210,7 @@ inline size_t filesize(FILE *f) #if defined(_WIN32) && !defined(__CYGWIN__) int fd = _fileno(f); #if _WIN64 // 64 bits - long long ret = _filelengthi64(fd); + __int64 ret = _filelengthi64(fd); if (ret >= 0) { return static_cast(ret);