1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
ttate 2002-05-01 04:13:28 +00:00
parent c85ab121ff
commit ca55fe4f0d

View file

@ -638,7 +638,7 @@ cary2ary(void *ptr, char t, int len)
ptr = (char *)ptr + sizeof(float); ptr = (char *)ptr + sizeof(float);
break; break;
case 'D': case 'D':
elem = rb_float_new(*((float*)ptr)); elem = rb_float_new(*((double*)ptr));
ptr = (char *)ptr + sizeof(double); ptr = (char *)ptr + sizeof(double);
break; break;
case 'C': case 'C':