summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-17 20:44:41 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-17 20:44:41 +0000
commit6d9e0233cf95ab7f893bd6cc26318db9dbdc8fed (patch)
tree3494b17cc2689dd2f4d8b972f2644ab154797b8d /tools
parent155a42a0ea84aabb960902694d0021ab42c8aff5 (diff)
downloadchromium_src-6d9e0233cf95ab7f893bd6cc26318db9dbdc8fed.zip
chromium_src-6d9e0233cf95ab7f893bd6cc26318db9dbdc8fed.tar.gz
chromium_src-6d9e0233cf95ab7f893bd6cc26318db9dbdc8fed.tar.bz2
Fix assertion.
This code was the result of a review comment I forgot to test before checking in. BUG= R=scottmg@chromium.org Review URL: https://codereview.chromium.org/27757002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-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_;
}