Merge pull request #19 from dkowl/master

clang constant conversion warning fix
This commit is contained in:
Marius Bancila 2020-09-09 23:15:26 +03:00 committed by GitHub
commit 1b12059d1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -852,7 +852,7 @@ namespace uuids
long long get_time_intervals()
{
auto start = std::chrono::system_clock::from_time_t(-12219292800);
auto start = std::chrono::system_clock::from_time_t(time_t(-12219292800));
auto diff = std::chrono::system_clock::now() - start;
auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(diff).count();
return ns / 100;