Skip to content

Commit

Permalink
fix compiling with {fmt} >=v10
Browse files Browse the repository at this point in the history
  • Loading branch information
DyXel committed Jul 31, 2023
1 parent aea87c0 commit 468d386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Multirole/Service/ReplayManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Service::ReplayManager::ReplayManager(Service::LogHandler& lh, bool save, const
FileScopedLock plock(lLastId);
if(std::fstream f(lastId.native(), IOS_BINARY_IN_ATE); f.is_open())
{
const auto fsize = f.tellg();
const auto fsize = static_cast<size_t>(f.tellg());
f.clear();
if(fsize == sizeof(id))
{
Expand Down Expand Up @@ -109,7 +109,7 @@ uint64_t Service::ReplayManager::NewId() noexcept
FileScopedLock plock(lLastId);
if(std::fstream f(lastId.native(), IOS_BINARY_IN_ATE); f.is_open())
{
const auto fsize = f.tellg();
const auto fsize = static_cast<size_t>(f.tellg());
f.clear();
if(fsize != sizeof(id))
{
Expand Down

0 comments on commit 468d386

Please sign in to comment.