summaryrefslogtreecommitdiff
path: root/test/dl/test_func.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/dl/test_func.rb')
-rw-r--r--test/dl/test_func.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dl/test_func.rb b/test/dl/test_func.rb
index 512c22851e..86ac6301a4 100644
--- a/test/dl/test_func.rb
+++ b/test/dl/test_func.rb
@@ -33,8 +33,8 @@ module DL
def test_strtod()
f = Function.new(CFunc.new(@libc['strtod'], TYPE_DOUBLE, 'strtod'),
[TYPE_VOIDP, TYPE_VOIDP])
- buff1 = "12.34"
- buff2 = " "
+ buff1 = CPtr["12.34"]
+ buff2 = buff1 + 4
r = f.call(buff1, buff2)
assert_match(12.00..13.00, r)
end