diff --git a/src/multistat.cpp b/src/multistat.cpp index 8b023517c68..640a518b3fb 100644 --- a/src/multistat.cpp +++ b/src/multistat.cpp @@ -952,7 +952,7 @@ class KnownPlayersDB { // Begin transaction SQLite::Transaction transaction(*db); - auto mutedTimeValue = mutedTime.has_value() ? mutedTime.value().time_since_epoch().count() : 0; + int64_t mutedTimeValue = static_cast(mutedTime.has_value() ? mutedTime.value().time_since_epoch().count() : 0); query_insertNewPlayerOptions->bind(1, publicKeyb64); query_insertNewPlayerOptions->bind(2, name);