Skip to content

Commit 2293b07

Browse files
committed
auto merge of #5364 : xenocons/rust/patch-1, r=z0w0
2 parents b778ec9 + d8094f8 commit 2293b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/rust_builtin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ get_time(int64_t *sec, int32_t *nsec) {
321321
ul.HighPart = fileTime.dwHighDateTime;
322322
uint64_t ns_since_1601 = ul.QuadPart / 10;
323323

324-
const uint64_t NANOSECONDS_FROM_1601_TO_1970 = 11644473600000000u;
324+
const uint64_t NANOSECONDS_FROM_1601_TO_1970 = 11644473600000000ull;
325325
uint64_t ns_since_1970 = ns_since_1601 - NANOSECONDS_FROM_1601_TO_1970;
326326
*sec = ns_since_1970 / 1000000;
327327
*nsec = (ns_since_1970 % 1000000) * 1000;

0 commit comments

Comments
 (0)