diff options
| author | grischka <grischka> | 2016-10-14 11:23:48 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2017-02-05 14:30:19 +0100 |
| commit | 3b84e61eaddb068707a7a3d40a9ebd5e69975965 (patch) | |
| tree | 9bcb73fff07daaa55fb4bfafee7b44833223f976 /tests/tests2/59_function_array.c | |
| parent | 85fca9e924109b3e10c14d2ba9ef1abad17b890c (diff) | |
| download | tinycc-3b84e61eaddb068707a7a3d40a9ebd5e69975965.tar.gz tinycc-3b84e61eaddb068707a7a3d40a9ebd5e69975965.tar.bz2 | |
Revert "partial revert of the commit 4ad186c5ef61"
There seems nothing wrong. With
int t1 = 176401255;
float f = 0.25;
int t2 = t1 * f; // 176401255 * 0.25 = 44100313.75
according to the arithmetic conversion rules, the number
176401255 needs to be converted to float, and the compiler
can choose either the nearest higher or nearest lower
representable number "in an implementation-defined manner".
Which may be 176401248 or 176401264. So as result both
44100312 and 44100313 are correct.
This reverts commit 664c19ad5ef16f3463087a33ecfe5d5ac24f81ec.
Diffstat (limited to 'tests/tests2/59_function_array.c')
0 files changed, 0 insertions, 0 deletions
