summaryrefslogtreecommitdiff
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
commit598d8ada314704591ac6eaf2c40dd9b0602490f8 (patch)
treeeec41855f704ff341615ee87a464a66dd40a7469 /eval.c
parent781ce823dcf986620464a433340d0438b6fe7cd6 (diff)
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/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 3b975ff..3ef4165 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 {