From ae2fe781dd4aae16a2f03a4b9fb93514eb9886d4 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 13 May 1998 07:26:47 +0000 Subject: 1.1b9_19 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'object.c') diff --git a/object.c b/object.c index 65f5fe920b..0e3bfdf31b 100644 --- a/object.c +++ b/object.c @@ -15,7 +15,11 @@ #include VALUE mKernel; +#ifdef __MACOS__ /* name conflict AERegistory.h */ +VALUE cRubyObject; +#else VALUE cObject; +#endif VALUE cModule; VALUE cClass; extern VALUE cFixnum; @@ -776,7 +780,7 @@ rb_convert_type(val, type, tname, method) arg1.val = arg2.val = val; arg1.s = method; arg2.s = tname; - val = rb_rescue(to_type, &arg1, fail_to_type, &arg2); + val = rb_rescue(to_type, (VALUE)&arg1, fail_to_type, (VALUE)&arg2); Check_Type(val, type); return val; } -- cgit v1.2.3