mir icon indicating copy to clipboard operation
mir copied to clipboard

mir2c bug with floating point

Open Pombal opened this issue 4 years ago • 1 comments

When outputting a whole number for MIR_OP_FLOAT on out_op(), mir2c outputs something like 3f. This doesn't compile.

Using a specification such as "%#.*gf" would solve the issue.

Pombal avatar Nov 08 '20 18:11 Pombal

Thank you for reporting this bug. I've fixed it by https://github.com/vnmakarov/mir/commit/73057e24f0e0bbd2c5ee6770261370d7ff71da4e

vnmakarov avatar Nov 09 '20 21:11 vnmakarov