From 462146b644a7083efe817c86c3fc99c8c59fbc62 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 7 Sep 2019 07:54:08 -0400 Subject: [PATCH] FileWriterWin32: Prevent implicit sign conversion within position() --- src/athena/FileWriterWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/athena/FileWriterWin32.cpp b/src/athena/FileWriterWin32.cpp index 9a6cd43..684927d 100644 --- a/src/athena/FileWriterWin32.cpp +++ b/src/athena/FileWriterWin32.cpp @@ -89,7 +89,7 @@ atUint64 FileWriter::position() const { LARGE_INTEGER li = {}; LARGE_INTEGER res; SetFilePointerEx(m_fileHandle, li, &res, FILE_CURRENT); - return res.QuadPart; + return static_cast(res.QuadPart); } atUint64 FileWriter::length() const { return utility::fileSize(m_filename); }