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

ruby-changes:36786

From: usa <ko1@a...>
Date: Wed, 17 Dec 2014 01:08:31 +0900 (JST)
Subject: [ruby-changes:36786] usa:r48867 (trunk): * ext/win32/lib/Win32API.rb (Win32API#call): need to splat. hmm, when

usa	2014-12-17 01:08:16 +0900 (Wed, 17 Dec 2014)

  New Revision: 48867

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

  Log:
    * ext/win32/lib/Win32API.rb (Win32API#call): need to splat.  hmm, when
      was this broken?

  Modified files:
    trunk/ChangeLog
    trunk/ext/win32/lib/Win32API.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48866)
+++ ChangeLog	(revision 48867)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 17 01:06:47 2014  NAKAMURA Usaku  <usa@r...>
+
+	* ext/win32/lib/Win32API.rb (Win32API#call): need to splat.  hmm, when
+	  was this broken?
+
 Tue Dec 16 15:18:23 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* iseq.c (rb_method_for_self_aref, rb_method_for_self_aset): call
Index: ext/win32/lib/Win32API.rb
===================================================================
--- ext/win32/lib/Win32API.rb	(revision 48866)
+++ ext/win32/lib/Win32API.rb	(revision 48867)
@@ -29,7 +29,7 @@ class Win32API https://github.com/ruby/ruby/blob/trunk/ext/win32/lib/Win32API.rb#L29
       args[i], = [x == 0 ? nil : x].pack("p").unpack(POINTER_TYPE) if import[i] == "S"
       args[i], = [x].pack("I").unpack("i") if import[i] == "I"
     end
-    ret, = @func.call(args)
+    ret, = @func.call(*args)
     return ret || 0
   end
 

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

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