News for hackers. Stuff that matters.
Re:Converting binary floating-point numbers to integers by chrisseaton on Saturday October 23, 2021 @10:35AM (#28968915)
> Accessing the value stored in "value" through the "fields" member is undefined behavior.

I’m surprised at that. Can you quote the relevant part of the spec that you think makes this undefined behaviour?

Re:Converting binary floating-point numbers to integers by CyberRabbi on Saturday October 23, 2021 @03:37PM (#28971532)
It's undefined behavior in C++. In C it is not certain if it is undefined or unspecified behavior. https://stackoverflow.com/questions/11373203/accessing-inact...
Re:Converting binary floating-point numbers to integers by chrisseaton on Saturday October 23, 2021 @04:21PM (#28971873)
I think the standard and the link you've giving makes it pretty explicit that it's unspecified. I don't really see where you can get undefined from?