From 39fce60145c7ea65701d94594e8aa59b4cf9c364 Mon Sep 17 00:00:00 2001
From: wwylele <wwylele@gmail.com>
Date: Fri, 6 Apr 2018 13:35:37 +0300
Subject: [PATCH] [quick-fix]file-util: fmtlib errors on FILE* type parameter.
 Explicitly cast it to void*

---
 src/common/file_util.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 23828fbe2..ed19f9420 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -371,12 +371,12 @@ u64 GetSize(FILE* f) {
     // can't use off_t here because it can be 32-bit
     u64 pos = ftello(f);
     if (fseeko(f, 0, SEEK_END) != 0) {
-        NGLOG_ERROR(Common_Filesystem, "GetSize: seek failed {}: {}", f, GetLastErrorMsg());
+        NGLOG_ERROR(Common_Filesystem, "GetSize: seek failed {}: {}", (void*)f, GetLastErrorMsg());
         return 0;
     }
     u64 size = ftello(f);
     if ((size != pos) && (fseeko(f, pos, SEEK_SET) != 0)) {
-        NGLOG_ERROR(Common_Filesystem, "GetSize: seek failed {}: {}", f, GetLastErrorMsg());
+        NGLOG_ERROR(Common_Filesystem, "GetSize: seek failed {}: {}", (void*)f, GetLastErrorMsg());
         return 0;
     }
     return size;