summaryrefslogtreecommitdiff
path: root/test/fiddle
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2021-04-20 11:17:38 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-13 19:37:45 +0900
commit8c905349bb35fa4c21614272f8e23da646e94957 (patch)
tree5bbeeb561afafa6136b54a2ac58a159e53c5a626 /test/fiddle
parent37d16bb9dc2fbb42a93d899f6eed1857b304e3d6 (diff)
downloadruby-8c905349bb35fa4c21614272f8e23da646e94957.tar.gz
[ruby/fiddle] test: fix SetLastError's input type
https://github.com/ruby/fiddle/commit/ca5e6a0404
Diffstat (limited to 'test/fiddle')
-rw-r--r--test/fiddle/test_function.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fiddle/test_function.rb b/test/fiddle/test_function.rb
index a67c38d556..df632925ad 100644
--- a/test/fiddle/test_function.rb
+++ b/test/fiddle/test_function.rb
@@ -101,7 +101,7 @@ module Fiddle
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)