diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-01-18 09:08:52 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-01-18 09:08:52 +0000 |
commit | 41d0ebf4660c74a92bfd9484bd3659d5367d2d76 (patch) | |
tree | f046d437bf3c46562223d3639ff5401297e3cd62 /eval.c | |
parent | 9f72c385f295637f8c7b3ed7a159cb7cfa9752ef (diff) |
1.2.2 PR1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -3478,11 +3478,13 @@ rb_call0(klass, recv, id, argc, argv, body, nosuper) } break; - /* for re-scoped/renamed method */ - case NODE_ZSUPER: - /* for attr get/set */ - case NODE_ATTRSET: - case NODE_IVAR: + + case NODE_IVAR: /* for attr get */ + if (argc != 0) { + ArgError("Wrong # of arguments(%d for 0)", argc); + } + case NODE_ATTRSET: /* for attr set */ + case NODE_ZSUPER: /* for re-scoped/renamed method */ result = rb_eval(recv, body); break; @@ -4280,7 +4282,7 @@ f_require(obj, fname) VALUE obj, fname; { char *ext, *file, *feature, *buf; /* OK */ - VALUE load; + volatile VALUE load; Check_SafeStr(fname); if (rb_provided(RSTRING(fname)->ptr)) |