diff options
author | John Hodge <tpg@mutabah.net> | 2017-08-31 17:47:38 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-09-02 16:04:45 +0800 |
commit | 263c7ffb7aa3cae41c9af32cbcfdfc34b2a0dfba (patch) | |
tree | bc92bbd72463279cdc5a925a90f5c140c03623d8 /tools/minicargo/build.cpp | |
parent | c623c36a403a8e8469ba893387af2e9494607a06 (diff) | |
download | mrust-263c7ffb7aa3cae41c9af32cbcfdfc34b2a0dfba.tar.gz |
minicargo - Clean up warnings on MSVC
Diffstat (limited to 'tools/minicargo/build.cpp')
-rw-r--r-- | tools/minicargo/build.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/minicargo/build.cpp b/tools/minicargo/build.cpp index b805ebb5..a6c4a807 100644 --- a/tools/minicargo/build.cpp +++ b/tools/minicargo/build.cpp @@ -490,7 +490,7 @@ bool Builder::spawn_process(const char* exe_name, const StringList& args, const sa.bInheritHandle = TRUE; si.hStdOutput = CreateFile( static_cast<::std::string>(logfile).c_str(), GENERIC_WRITE, FILE_SHARE_READ, &sa, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL ); DWORD tmp; - WriteFile(si.hStdOutput, cmdline_str.data(), cmdline_str.size(), &tmp, NULL); + WriteFile(si.hStdOutput, cmdline_str.data(), static_cast<DWORD>(cmdline_str.size()), &tmp, NULL); WriteFile(si.hStdOutput, "\n", 1, &tmp, NULL); } PROCESS_INFORMATION pi = { 0 }; |