From f6cc65ae48d176fcc99847dbae1d39fad9ae806d Mon Sep 17 00:00:00 2001 From: yugui Date: Sun, 28 Dec 2008 12:13:32 +0000 Subject: [PATCH] * ext/dl/lib/dl/import.rb (DL::Importer#sizeof): follows a feature change in 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/dl/lib/dl/import.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6ce7709d47..bb0eb377cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Dec 28 21:09:12 2008 Yuki Sonoda (Yugui) + + * ext/dl/lib/dl/import.rb (DL::Importer#sizeof): follows + a feature change in 1.9. + Sun Dec 28 21:03:07 2008 Yuki Sonoda (Yugui) * ext/dl/lib/dl/import.rb (DL::Importer#extern): adds filename and diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb index aab0a38d52..199354c18e 100644 --- a/ext/dl/lib/dl/import.rb +++ b/ext/dl/lib/dl/import.rb @@ -87,7 +87,7 @@ module DL raise(DLError, "unknown type: #{ty}") end when Class - if( ty.instance_methods().include?("to_ptr") ) + if( ty.instance_methods().include?(:to_ptr) ) return ty.size() end end