sysy-data/functional_c/log/95_float.log

21 lines
1.2 KiB
Plaintext

stdout:
stderr:
/home/wangfiox/Documents/database/functional_c/sy/95_float.sy:13:28: warning: implicit conversion from 'double' to 'int' changes value from 2.9 to 2 [-Wliteral-conversion]
const int MAX = 1e9, TWO = 2.9, THREE = 3.2, FIVE = TWO + THREE;
~~~ ^~~
/home/wangfiox/Documents/database/functional_c/sy/95_float.sy:13:41: warning: implicit conversion from 'double' to 'int' changes value from 3.2 to 3 [-Wliteral-conversion]
const int MAX = 1e9, TWO = 2.9, THREE = 3.2, FIVE = TWO + THREE;
~~~~~ ^~~
/home/wangfiox/Documents/database/functional_c/sy/95_float.sy:75:7: warning: implicit conversion from 'double' to '_Bool' changes value from 1.5 to true [-Wliteral-conversion]
if (1.5) ok();
~~ ^~~
/home/wangfiox/Documents/database/functional_c/sy/95_float.sy:76:9: warning: implicit conversion from 'double' to '_Bool' changes value from 3.3 to true [-Wliteral-conversion]
if (!!3.3) ok();
~^~~
/home/wangfiox/Documents/database/functional_c/sy/95_float.sy:78:12: warning: implicit conversion from 'double' to '_Bool' changes value from 0.3 to true [-Wliteral-conversion]
if (0 || 0.3) ok();
~~ ^~~
5 warnings generated.