Skip to content

Commit 2406fe9

Browse files
committed
[Change] More appropriate format string (Reminded by x64-windows build)
1 parent 28c8dc4 commit 2406fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LogStream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ std::ostream &timestamp(std::ostream &out)
4242
{
4343
auto d = imaxdiv(cur_time.time_since_epoch().count(), 1000);
4444
time_t t = d.quot;
45-
std::sprintf(YMDHMS + std::strftime(YMDHMS, sizeof YMDHMS, "%Y/%m/%d %H:%M:%S", std::localtime(&t)), ".%03ld", d.rem);
45+
std::sprintf(YMDHMS + std::strftime(YMDHMS, sizeof YMDHMS, "%Y/%m/%d %H:%M:%S", std::localtime(&t)), ".%03" PRIdMAX, d.rem);
4646
old_time = cur_time;
4747
}
4848
return out <<YMDHMS;

0 commit comments

Comments
 (0)