summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-17 05:23:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-17 05:23:10 +0000
commitf91b0dc811d709b260451809c5e35397e75f6d2d (patch)
tree81594e8cd8736d46a9a3350511929756e48287f2 /compile.c
parent589ec2beb565ffae7e387e951539da03a1d0b255 (diff)
* compile.c (rb_parse_in_eval): returns true in true eval, not in
main. [ruby-dev:38382] * parse.y (program): inherits dvars in eval or main. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 3ddd061294..fc5ed90a06 100644
--- a/compile.c
+++ b/compile.c
@@ -5416,7 +5416,7 @@ rb_local_defined(ID id)
int
rb_parse_in_eval(void)
{
- return GET_THREAD()->parse_in_eval != 0;
+ return GET_THREAD()->parse_in_eval > 0;
}
int