summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-06 09:10:17 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-06 09:10:17 +0000
commitd2e13dc5cb7e726f99babbe4822f0c1dbe16c44f (patch)
treeeec41855f704ff341615ee87a464a66dd40a7469 /eval.c
parent32961d039c86c43f76f986b91804ba506f785bc0 (diff)
downloadruby-d2e13dc5cb7e726f99babbe4822f0c1dbe16c44f.tar.gz
ruby-d2e13dc5cb7e726f99babbe4822f0c1dbe16c44f.tar.xz
ruby-d2e13dc5cb7e726f99babbe4822f0c1dbe16c44f.zip
eban
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 3b975ffcb..3ef416552 100644
--- a/eval.c
+++ b/eval.c
@@ -6585,10 +6585,10 @@ rb_mod_define_method(argc, argv, mod)
if (TYPE(body) != T_DATA) {
/* type error */
}
- if (RDATA(body)->dmark == bm_mark) {
+ if (RDATA(body)->dmark == (RUBY_DATA_FUNC)bm_mark) {
rb_add_method(mod, id, NEW_DMETHOD(method_unbind(body)), NOEX_PUBLIC);
}
- else if (RDATA(body)->dmark != blk_mark) {
+ else if (RDATA(body)->dmark != (RUBY_DATA_FUNC)blk_mark) {
rb_add_method(mod, id, NEW_BMETHOD(body), NOEX_PUBLIC);
}
else {