From 2022fa163b3276986e296de274b51224d52c38aa Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 4 Feb 2014 10:18:31 +0900 Subject: [PATCH] fix #26 --- src/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.c b/src/codegen.c index 86b292fd..dcaab644 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -839,7 +839,7 @@ resolve_reference_node(resolver_state *state, pic_value obj) if (depth == scope->depth) { return resolve_gref(state, sym); } - else if (depth == 0 && is_closed(state, sym)) { + else if (depth == 0 && ! is_closed(state, sym)) { return resolve_lref(state, sym); } else {