summaryrefslogtreecommitdiffhomepage
path: root/src/class.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-05-20 06:09:31 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-05-20 06:09:31 -0700
commitac31b58fe85363e6848cbbbdb6125cce1a2f6152 (patch)
tree7dbd5269aa3694ae69da7774a9be5cbd0aef09eb /src/class.c
parent89865740e4bc7f496d1abb306cb8d8d5effefa39 (diff)
parent606a1665c5cfff42622687d693b9362b6c1b663a (diff)
downloadmruby-ac31b58fe85363e6848cbbbdb6125cce1a2f6152.tar.gz
mruby-ac31b58fe85363e6848cbbbdb6125cce1a2f6152.zip
Merge pull request #169 from mitchblank/cplusplus
Part 1 of C++ compilability
Diffstat (limited to 'src/class.c')
-rw-r--r--src/class.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/class.c b/src/class.c
index ee8cb8f48..eda3f87a0 100644
--- a/src/class.c
+++ b/src/class.c
@@ -1003,10 +1003,10 @@ mrb_value
mrb_mod_alias(mrb_state *mrb, mrb_value mod)
{
struct RClass *c = mrb_class_ptr(mod);
- mrb_value new, old;
+ mrb_value new_value, old_value;
- mrb_get_args(mrb, "oo", &new, &old);
- mrb_alias_method(mrb, c, mrb_symbol(new), mrb_symbol(old));
+ mrb_get_args(mrb, "oo", &new_value, &old_value);
+ mrb_alias_method(mrb, c, mrb_symbol(new_value), mrb_symbol(old_value));
return mrb_nil_value();
}