[Bug c/83122] -Wconversion and shifting bitwise

2017-11-23 Thread lh_mouse at 126 dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83122 --- Comment #2 from Liu Hao --- Yes it is hard to tell whether there is indeed loss of precision. At the moment, the (only?) redictable way to silence the warning is to use a bitwise and operation. That is, `ptr->b = (val >> 3) & (UINT64_MAX >>

[Bug c/83122] -Wconversion and shifting bitwise

2017-11-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83122 Richard Biener changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRM