fix timestamp truncation (#3874)

This commit is contained in:
Archez 2024-02-01 20:25:57 -05:00 committed by GitHub
parent e3825ec263
commit 7ef6a434f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1144,8 +1144,7 @@ extern "C" uint64_t GetUnixTimestamp() {
auto time = std::chrono::system_clock::now();
auto since_epoch = time.time_since_epoch();
auto millis = std::chrono::duration_cast<std::chrono::milliseconds>(since_epoch);
long now = millis.count();
return now;
return (uint64_t)millis.count();
}
// C->C++ Bridge