http://qs1969.pair.com?node_id=11134444


in reply to [OT(C)] float parameter treated as double by callee -- but it fails with FFI

I see that callee treats it as double (only to convert it to float a few lines below).

I assume it simply casts the double to a float ?
I don't see anything particularly puzzling about that.
That's exactly what happens in TIFF.xs, too, with f = SvNV(ST(2));
"f" is a float, but SvNV(ST(2)) will return an NV (ie a double or long double or __float128, depending upon perl's nvtype).

Cheers,
Rob