From d58a10965610eb6b338e411ce816b810d76ab59e Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Fri, 10 Aug 2012 13:27:08 -0700 Subject: windows: fix size_t<->int conversions in ninja.exe --- src/graph.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/graph.h') 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; -- cgit v1.2.1