getDouble() function returning a double value slightly above INT_MAX (2147483647). The program attempts to convert this value to an unsigned int using both direct and indirect casting.MSVC x86, the direct cast truncates the double value to 2147483648 that's one more than INT_MAX. This is unexpected because the value should fit within the range of an unsigned int typically 32-bits on x86. Funny enough, this behavior is not observed on GCC which is another compiler.Join the Discord to ask follow-up questions and connect with the community
EdgeBench is a remote platform that lets developers build, test, and evaluate embedded applications on real hardware through a browser.
3,029 Members
Join