summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-01 04:13:28 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-01 04:13:28 +0000
commitca55fe4f0d1477f9b2b14793468c370ebbb96ea7 (patch)
treec17cec3fbca2ddce5aa0dabf5c077c3736de2b9e
parentc85ab121ff4259be4620c8521d082346dd24d95f (diff)
L641: rb_float_new(*((float*)ptr)) -> rb_float_new(*((double*)ptr)).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/dl/ptr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/ptr.c b/ext/dl/ptr.c
index e1cd937d49b..a6af30112dc 100644
--- a/ext/dl/ptr.c
+++ b/ext/dl/ptr.c
@@ -638,7 +638,7 @@ cary2ary(void *ptr, char t, int len)
ptr = (char *)ptr + sizeof(float);
break;
case 'D':
- elem = rb_float_new(*((float*)ptr));
+ elem = rb_float_new(*((double*)ptr));
ptr = (char *)ptr + sizeof(double);
break;
case 'C':