* error.c (rb_check_type): check for type from extensions for ruby
1.8. see [ruby-core:33797]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
26e6372a87
commit
c5a19b38af
@ -1,3 +1,8 @@
|
||||
Thu Dec 23 11:00:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* error.c (rb_check_type): check for type from extensions for ruby
|
||||
1.8. see [ruby-core:33797].
|
||||
|
||||
Thu Dec 23 08:12:59 2010 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||
|
||||
* lib/net/smtp.rb: refactoring Net::SMTP#esmtp= to use an
|
||||
|
5
error.c
5
error.c
@ -354,7 +354,10 @@ rb_check_type(VALUE x, int t)
|
||||
}
|
||||
type++;
|
||||
}
|
||||
rb_bug("unknown type 0x%x (0x%x given)", t, TYPE(x));
|
||||
if (xt > T_MASK && xt <= 0x3f) {
|
||||
rb_fatal("unknown type 0x%x (0x%x given, probably comes from extension library for ruby 1.8)", t, xt);
|
||||
}
|
||||
rb_bug("unknown type 0x%x (0x%x given)", t, xt);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user