From af83bfb4577bac9bd72880fb6dcf9f8c8895aacb Mon Sep 17 00:00:00 2001 From: yugui Date: Mon, 29 Dec 2008 07:18:47 +0000 Subject: merges r21138 from trunk into ruby_1_9_1. * ext/dl/lib/dl/import.rb (DL::Importer#sizeof): follows a feature change in 1.9. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21155 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 f46922d3b..fffb93dbd 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 19:11:03 2008 Nobuyoshi Nakada * win32/Makefile.sub (config.h): do not use snprintf/vsnprintf in diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb index f6fb35944..4f93468dd 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 -- cgit