| 434 | } |
| 435 | |
| 436 | void convert(CodeContainer& code, char fromType, char toType) |
| 437 | { |
| 438 | if (fromType != toType) |
| 439 | { |
| 440 | if (fromType == 'f' && toType == 'l') |
| 441 | opFloatToInt(code); |
| 442 | else if (fromType == 'l' && toType == 'f') |
| 443 | opIntToFloat(code); |
| 444 | else |
| 445 | throw std::logic_error("illegal type conversion"); |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | void exit(CodeContainer& code) |
| 450 | { |
no test coverage detected