summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-12 01:15:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-12 01:15:17 +0000
commit1acc981a539813e6ec2a5c50f3d91f946a4da1a6 (patch)
treec7e7434c001d81701f583a30b5e10c51390e51e2 /eval.c
parent600d59db733b266a706bf74c4f2083cf7940e471 (diff)
speed up patch 4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 47b23e9f66..4c070729e7 100644
--- a/eval.c
+++ b/eval.c
@@ -3354,7 +3354,8 @@ rb_call0(klass, recv, id, argc, argv, body, nosuper)
if (local_vars) {
if (i > 0) {
- MEMCPY(local_vars, argv, VALUE, i);
+ /* +2 for $_ and $~ */
+ MEMCPY(local_vars+2, argv, VALUE, i);
}
argv += i; argc -= i;
if (node->nd_opt) {