Skip to content

Commit d8094f8

Browse files
author
xenocons
committed
updated from L to ull for easier mingw32 builds.
1 parent 3bbcac3 commit d8094f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/rust_builtin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ get_time(int64_t *sec, int32_t *nsec) {
373373
ul.HighPart = fileTime.dwHighDateTime;
374374
uint64_t ns_since_1601 = ul.QuadPart / 10;
375375

376-
const uint64_t NANOSECONDS_FROM_1601_TO_1970 = 11644473600000000u;
376+
const uint64_t NANOSECONDS_FROM_1601_TO_1970 = 11644473600000000ull;
377377
uint64_t ns_since_1970 = ns_since_1601 - NANOSECONDS_FROM_1601_TO_1970;
378378
*sec = ns_since_1970 / 1000000;
379379
*nsec = (ns_since_1970 % 1000000) * 1000;

0 commit comments

Comments
 (0)