Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit db94f29

Browse files
committed
fix a warning on linux 64 platform
1 parent 11eb8ad commit db94f29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/build.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ void Builder::Cleanup() {
797797
}
798798

799799
if (compiler_log_) {
800-
fprintf(compiler_log_, "#Done(%lld)\n", GetTimeMillis());
800+
fprintf(compiler_log_, "#Done(%" PRId64 ")\n", GetTimeMillis());
801801
fclose(compiler_log_);
802802
compiler_log_ = NULL;
803803
}

src/ninja.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ int NinjaMain::RunBuild(int argc, char** argv) {
11371137
compiler_log_path = build_dir_ + "/" + compiler_log_path;
11381138
}
11391139
compiler_log_ = fopen(compiler_log_path.c_str(), "w");
1140-
fprintf(compiler_log_,"#Start(%lld)\n", GetTimeMillis());
1140+
fprintf(compiler_log_,"#Start(%" PRId64 ")\n", GetTimeMillis());
11411141
setvbuf(compiler_log_, NULL, _IOLBF, BUFSIZ);
11421142
SetCloseOnExec(fileno(compiler_log_));
11431143
}

0 commit comments

Comments
 (0)