without checking, how does the following evaluate? static_cast<uint32_t>(-1.0f)
I voted UINT_MAX, but that is most likely wrong. The exact float according to IEE-754 would be 0xBF800000, and the exact integer would be 0xFFFFFFFF, which might imply that UINT_MAX is correct. But since we're doing a static cast from a float to a uint, I suspect undef behv.
-
-
My vote is UINT_MAX for real world, but theoretically implementation-specific...
Kiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.