ruby-changes:39834
From: nobu <ko1@a...>
Date: Tue, 22 Sep 2015 00:47:28 +0900 (JST)
Subject: [ruby-changes:39834] nobu:r51915 (trunk): win32ole.c: fix symbol condition
nobu 2015-09-22 00:46:44 +0900 (Tue, 22 Sep 2015) New Revision: 51915 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51915 Log: win32ole.c: fix symbol condition * ext/win32ole/win32ole.c (fole_missing): fix symbol condition, rb_check_symbol returns Qnil when the symbol is not interned. Modified files: trunk/ext/win32ole/win32ole.c Index: ext/win32ole/win32ole.c =================================================================== --- ext/win32ole/win32ole.c (revision 51914) +++ ext/win32ole/win32ole.c (revision 51915) @@ -3283,7 +3283,7 @@ fole_missing(int argc, VALUE *argv, VALU https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L3283 rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS); mid = argv[0]; sym = rb_check_symbol(&mid); - if (sym) mid = rb_sym2str(sym); + if (!NIL_P(sym)) mid = rb_sym2str(sym); mname = StringValueCStr(mid); if(!mname) { rb_raise(rb_eRuntimeError, "fail: unknown method or property"); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/