# HG changeset patch # User Paper # Date 1701888276 18000 # Node ID 168382a89b21de662fb0e8483136e0129c7d2353 # Parent 9613d72b097ec76ce0fceee3fdc8ebb0d6206271 time: static assert time_t diff -r 9613d72b097e -r 168382a89b21 src/core/time.cc --- a/src/core/time.cc Wed Dec 06 13:43:54 2023 -0500 +++ b/src/core/time.cc Wed Dec 06 13:44:36 2023 -0500 @@ -56,7 +56,7 @@ } int64_t GetSystemTime() { - assert(sizeof(int64_t) >= sizeof(time_t)); + static_assert(sizeof(int64_t) >= sizeof(time_t)); time_t t = std::time(nullptr); return *reinterpret_cast(&t); }