summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/gn/gyp_binary_target_writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gn/gyp_binary_target_writer.cc b/tools/gn/gyp_binary_target_writer.cc
index 3efab7e..ff33f39 100644
--- a/tools/gn/gyp_binary_target_writer.cc
+++ b/tools/gn/gyp_binary_target_writer.cc
@@ -144,7 +144,7 @@ std::ostream& GypBinaryTargetWriter::Indent(int spaces) {
const char kSpaces[81] =
" "
" ";
- CHECK(spaces == arraysize(kSpaces) - 1);
+ CHECK(static_cast<size_t>(spaces) <= arraysize(kSpaces) - 1);
out_.write(kSpaces, spaces);
return out_;
}