|We don't bite newbies here... much|
Re^3: Detecting whether UV fits into an NVby syphilis (Bishop)
|on Feb 27, 2020 at 05:57 UTC||Need Help??|
I think that checking whether the UV arg == (UV)((NV)arg) is a splendid idea
Unfortunately this check fails for some UV values with less recent Microsoft Compilers - eg Visual Studio 2010 and earlier.
No problems with Visual Studio 2017 and Visual Studio 2019.
I suspect that Visual Studio 2015 is the oldest Microsoft Compiler that doesn't suffer from this problem, but I haven't confirmed that.
This particular issue looks like another manifestation of the problem that sent me down this path in the first place.
Here's the demo I ran: