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

ruby-changes:66766

From: Sutou <ko1@a...>
Date: Tue, 13 Jul 2021 19:38:21 +0900 (JST)
Subject: [ruby-changes:66766] 303ab5da8b (master): [ruby/fiddle] test: add missing receiver

https://git.ruby-lang.org/ruby.git/commit/?id=303ab5da8b

From 303ab5da8b34faf6b4b608f1f7512dfd08544cc8 Mon Sep 17 00:00:00 2001
From: Sutou Kouhei <kou@c...>
Date: Tue, 20 Apr 2021 11:07:27 +0900
Subject: [ruby/fiddle] test: add missing receiver

https://github.com/ruby/fiddle/commit/1da3b4af16
---
 test/fiddle/test_function.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/fiddle/test_function.rb b/test/fiddle/test_function.rb
index ea5f054..842221c 100644
--- a/test/fiddle/test_function.rb
+++ b/test/fiddle/test_function.rb
@@ -97,7 +97,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/test/fiddle/test_function.rb#L97
 
     if WINDOWS
       def test_win32_last_error
-        kernel32 = dlopen('kernel32')
+        kernel32 = Fiddle.dlopen('kernel32')
         args = [kernel32['SetLastError'], [TYPE_LONG], TYPE_VOID]
         args << Function::STDCALL if Function.const_defined?(:STDCALL)
         set_last_error = Function.new(*args)
-- 
cgit v1.1


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

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