diff options
author | Michael Forney <mforney@mforney.org> | 2021-10-25 15:59:54 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-10-25 17:01:43 -0700 |
commit | e79005956c888e7bafb602df1137f881b34775ec (patch) | |
tree | 2267161bfb9b9cc5e065691cb75ef9679ca4b5ad /test/string-concat.qbe | |
parent | 9540626e5793583b6feb36d025dc640c7cb97cc8 (diff) |
eval: Fix int-to-float conversions
Also, add bounds checks for float-to-int conversions. If the integer
part can't be represented in the result type, C behavior is undefined.
Although this means the result is arbitrary, we need to avoid
undefined behavior in cproc itself when given such a program as
input.
Diffstat (limited to 'test/string-concat.qbe')
0 files changed, 0 insertions, 0 deletions