summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby.c b/ruby.c
index 92d2a6217f..03daaf5c6f 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1319,10 +1319,10 @@ process_options(VALUE arg)
}
#define PREPARE_PARSE_MAIN(expr) do { \
- th->parse_in_eval++; \
+ th->parse_in_eval--; \
th->base_block = &env->block; \
expr; \
- th->parse_in_eval--; \
+ th->parse_in_eval++; \
th->base_block = 0; \
} while (0)