[llvm-bugs] [Bug 33448] static_cast<int16_t>(51200.0f) returns unpredictable value

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 13 22:34:33 PDT 2017


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
                 CC|                            |richard-llvm at metafoo.co.uk
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
This is undefined behaviour. See http://eel.is/c++draft/conv.fpint#1

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170614/c6e58ff0/attachment.html>

More information about the llvm-bugs mailing list