summaryrefslogtreecommitdiffstats
path: root/src/graph.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-08-10 20:27:08 (GMT)
committerEvan Martin <martine@danga.com>2012-08-10 20:44:40 (GMT)
commitd58a10965610eb6b338e411ce816b810d76ab59e (patch)
treef5e9627cb0fcd0c2f62665388fa93f284ba318ee /src/graph.h
parentd98ba72ef8adfb1698b8de197de6751c8b14d5c0 (diff)
downloadNinja-d58a10965610eb6b338e411ce816b810d76ab59e.zip
Ninja-d58a10965610eb6b338e411ce816b810d76ab59e.tar.gz
Ninja-d58a10965610eb6b338e411ce816b810d76ab59e.tar.bz2
windows: fix size_t<->int conversions in ninja.exe
Diffstat (limited to 'src/graph.h')
-rw-r--r--src/graph.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/graph.h b/src/graph.h
index 0ef4f3f..f487a22 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -199,12 +199,12 @@ struct Edge {
// pointer...)
int implicit_deps_;
int order_only_deps_;
- bool is_implicit(int index) {
- return index >= ((int)inputs_.size()) - order_only_deps_ - implicit_deps_ &&
+ bool is_implicit(size_t index) {
+ return index >= inputs_.size() - order_only_deps_ - implicit_deps_ &&
!is_order_only(index);
}
- bool is_order_only(int index) {
- return index >= ((int)inputs_.size()) - order_only_deps_;
+ bool is_order_only(size_t index) {
+ return index >= inputs_.size() - order_only_deps_;
}
bool is_phony() const;