summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/eval_env.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval_env.cc b/src/eval_env.cc
index e03a82e..e991d21 100644
--- a/src/eval_env.cc
+++ b/src/eval_env.cc
@@ -30,7 +30,7 @@ void BindingEnv::AddBinding(const string& key, const string& val) {
}
void BindingEnv::AddRule(const Rule* rule) {
- assert(LookupRule(rule->name()) == NULL);
+ assert(LookupRuleCurrentScope(rule->name()) == NULL);
rules_[rule->name()] = rule;
}