[前][次][番号順一覧][スレッド一覧]

ruby-changes:34711

From: suke <ko1@a...>
Date: Sat, 12 Jul 2014 15:17:25 +0900 (JST)
Subject: [ruby-changes:34711] suke:r46794 (trunk): * ext/win32ole/win32ole.c (fole_record_method_missing): correct

suke	2014-07-12 15:17:16 +0900 (Sat, 12 Jul 2014)

  New Revision: 46794

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46794

  Log:
    * ext/win32ole/win32ole.c (fole_record_method_missing): correct
      fields Hash key.

  Modified files:
    trunk/ChangeLog
    trunk/ext/win32ole/win32ole.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46793)
+++ ChangeLog	(revision 46794)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jul 12 15:10:22 2014  Masaki Suketa <masaki.suketa@n...>
+
+	* ext/win32ole/win32ole.c (fole_record_method_missing): correct
+	  fields Hash key.
+
 Sat Jul 12 04:17:40 2014  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* lib/net/smtp.rb (Net::SMTP#data): enable buffering while
Index: ext/win32ole/win32ole.c
===================================================================
--- ext/win32ole/win32ole.c	(revision 46793)
+++ ext/win32ole/win32ole.c	(revision 46794)
@@ -9191,11 +9191,11 @@ fole_record_typename(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L9191
  *  Returns value specified by VT_RECORD OLE variable member name.
  */
 static VALUE
-fole_record_method_missing(VALUE self, VALUE member)
+fole_record_method_missing(VALUE self, VALUE name)
 {
 
     VALUE fields = rb_ivar_get(self, rb_intern("fields"));
-    VALUE val = rb_hash_aref(fields, rb_to_id(member));
+    VALUE val = rb_hash_aref(fields, rb_sym_to_s(name));
     if (val != Qnil) {
         return val;
     }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]