ruby-changes:18277
From: nobu <ko1@a...>
Date: Thu, 23 Dec 2010 11:00:22 +0900 (JST)
Subject: [ruby-changes:18277] Ruby:r30300 (trunk): * error.c (rb_check_type): check for type from extensions for ruby
nobu 2010-12-23 11:00:12 +0900 (Thu, 23 Dec 2010) New Revision: 30300 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30300 Log: * error.c (rb_check_type): check for type from extensions for ruby 1.8. see [ruby-core:33797]. Modified files: trunk/ChangeLog trunk/error.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30299) +++ ChangeLog (revision 30300) @@ -1,3 +1,8 @@ +Thu Dec 23 11:00:09 2010 Nobuyoshi Nakada <nobu@r...> + + * 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@t...> * lib/net/smtp.rb: refactoring Net::SMTP#esmtp= to use an Index: error.c =================================================================== --- error.c (revision 30299) +++ error.c (revision 30300) @@ -354,7 +354,10 @@ } 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); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/