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

ruby-changes:66768

From: Sutou <ko1@a...>
Date: Tue, 13 Jul 2021 19:38:23 +0900 (JST)
Subject: [ruby-changes:66768] 8c905349bb (master): [ruby/fiddle] test: fix SetLastError's input type

https://git.ruby-lang.org/ruby.git/commit/?id=8c905349bb

From 8c905349bb35fa4c21614272f8e23da646e94957 Mon Sep 17 00:00:00 2001
From: Sutou Kouhei <kou@c...>
Date: Tue, 20 Apr 2021 11:17:38 +0900
Subject: [ruby/fiddle] test: fix SetLastError's input type

https://github.com/ruby/fiddle/commit/ca5e6a0404
---
 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 a67c38d..df63292 100644
--- a/test/fiddle/test_function.rb
+++ b/test/fiddle/test_function.rb
@@ -101,7 +101,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/test/fiddle/test_function.rb#L101
     if WINDOWS
       def test_win32_last_error
         kernel32 = Fiddle.dlopen("kernel32")
-        args = [kernel32["SetLastError"], [TYPE_LONG], TYPE_VOID]
+        args = [kernel32["SetLastError"], [-TYPE_LONG], TYPE_VOID]
         args << Function::STDCALL if Function.const_defined?(:STDCALL)
         set_last_error = Function.new(*args)
         assert_nil(Fiddle.win32_last_error)
-- 
cgit v1.1


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

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