summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2013-04-27 21:27:24 (GMT)
committerEvan Martin <martine@danga.com>2013-04-27 21:27:24 (GMT)
commitf4226200f27e26dfef8cc9f8bc8c6e179d285edd (patch)
treeaca7ba647540963f4a37812a168a09f4bbfb6627
parentb549d18748a82d2a0e0efccb5ac6d9e3714f5234 (diff)
downloadNinja-f4226200f27e26dfef8cc9f8bc8c6e179d285edd.zip
Ninja-f4226200f27e26dfef8cc9f8bc8c6e179d285edd.tar.gz
Ninja-f4226200f27e26dfef8cc9f8bc8c6e179d285edd.tar.bz2
fix warning
-rw-r--r--src/deps_log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deps_log.cc b/src/deps_log.cc
index 5e5bba9..eb1ea2b 100644
--- a/src/deps_log.cc
+++ b/src/deps_log.cc
@@ -233,7 +233,7 @@ bool DepsLog::Load(const string& path, State* state, string* err) {
DepsLog::Deps* DepsLog::GetDeps(Node* node) {
// Abort if the node has no id (never referenced in the deps) or if
// there's no deps recorded for the node.
- if (node->id() < 0 || node->id() >= deps_.size())
+ if (node->id() < 0 || node->id() >= (int)deps_.size())
return NULL;
return deps_[node->id()];
}