Open belm0 opened 2 years ago
workaround is to explicitly cast the float literals to double:
c += foo(double(.4), double(.97))
it's surprising to have @inline
change the conventions of implicit conversion of the args
Yes, inlining definitely shouldn't have that effect, this is just a bug where the JIT is missing support for some float operations, it looks like. Float support is unfortunately not super well baked still (we don't use it much in prod), but we should be able to to get around to fixing this at some point, thanks for the report!
The problem goes away if
@inline
is removed.See in seen in cinder-3.8.6c2de94