C++ float-to-int conversion can be undefined behavior | Hacker News Reader