diff options
Diffstat (limited to 'test/dl/test_callback.rb')
-rw-r--r-- | test/dl/test_callback.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dl/test_callback.rb b/test/dl/test_callback.rb index 844e8f543a..ed3be661e7 100644 --- a/test/dl/test_callback.rb +++ b/test/dl/test_callback.rb @@ -29,8 +29,9 @@ module DL end def test_callback_return_arbitrary + foo = 'foo' addr = set_callback(TYPE_VOIDP, 1) do |ptr| - CPtr['foo'].to_i + CPtr[foo].to_i end func = CFunc.new(addr, TYPE_VOIDP, 'test') f = Function.new(func, [TYPE_VOIDP]) |