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

A float will automatically be promoted to a double

I wasn't aware of this, either.
I've eventually located this info in K&R (2nd Edition) in section A7 - "A7.3.2 Function Calls".
Thanks for spreading the education !!

Cheers,
Rob
  • Comment on Re^3: [OT(C)] float parameter treated as double by callee -- but it fails with FFI