aboutsummaryrefslogtreecommitdiffstats
path: root/ext/dl/test/test_func.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/test/test_func.rb')
-rw-r--r--ext/dl/test/test_func.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/test/test_func.rb b/ext/dl/test/test_func.rb
index 887d38df95..be937719df 100644
--- a/ext/dl/test/test_func.rb
+++ b/ext/dl/test/test_func.rb
@@ -24,7 +24,7 @@ module DL
end
def test_atof()
- f = Function.new(CFunc.new(@libc['atof'], TYPE_FLOAT, 'atof'),
+ f = Function.new(CFunc.new(@libc['atof'], TYPE_DOUBLE, 'atof'),
[TYPE_VOIDP])
r = f.call("12.34")
assert_match(12.00..13.00, r)