Closed Heath123 closed 1 year ago
Non-trapping float-to-int conversions are not yet implemented: https://github.com/turbolent/w2c2/blob/f4ee21a5aa12c7d650c49fb9087295477d4d26f7/w2c2/c.c#L2648-L2682
Compiling should have reported an error message.
I opened #62 to implement those instructions.
Thank you!
I didn't realise this wasn't in the core spec, sorry, I probably could have disabled it from the compiler
If you compile this AssemblyScript code with optimizations off:
you get this:
and the following C code:
This looks... obviously wrong, it's returning an uninitialised value