Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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 In reply to Re: [OT(C)] float parameter treated as double by callee -- but it fails with FFI
by syphilis
|
|