summaryrefslogtreecommitdiffstats
path: root/courgette/courgette_tool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'courgette/courgette_tool.cc')
-rw-r--r--courgette/courgette_tool.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/courgette/courgette_tool.cc b/courgette/courgette_tool.cc
index 9a0a5ea..5e37f30 100644
--- a/courgette/courgette_tool.cc
+++ b/courgette/courgette_tool.cc
@@ -68,7 +68,7 @@ void WriteSinkToFile(const courgette::SinkStream *sink,
int count =
file_util::WriteFile(output_path,
reinterpret_cast<const char*>(sink->Buffer()),
- sink->Length());
+ static_cast<int>(sink->Length()));
if (count == -1)
Problem("Can't write output.");
if (static_cast<size_t>(count) != sink->Length())