diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-31 13:04:57 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-31 13:04:57 +0000 |
| commit | 34ffc19c66e9c0fc1e8a8c70fab552090bb21df4 (patch) | |
| tree | fc0fde2bf60aad7ba6deb6649b812cb5d1bf7b60 | |
| parent | d763098c294c8e11036695ffc6fb8b87d46087e1 (diff) | |
merges r22718 from trunk into ruby_1_9_1.
--
* ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | ext/dl/lib/dl/value.rb | 2 | ||||
| -rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Tue Mar 3 15:05:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil. + Tue Sep 8 08:32:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * test/dl/test_{cfunc,ptr}.rb: added tests from Aaron Patterson. diff --git a/ext/dl/lib/dl/value.rb b/ext/dl/lib/dl/value.rb index 254e1921ce..56dfcefa32 100644 --- a/ext/dl/lib/dl/value.rb +++ b/ext/dl/lib/dl/value.rb @@ -48,6 +48,8 @@ module DL def wrap_arg(arg, ty, funcs, &block) funcs ||= [] case arg + when nil + return 0 when CPtr return arg.to_i when IO @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.1" -#define RUBY_PATCHLEVEL 317 +#define RUBY_PATCHLEVEL 318 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 |
