Casting Values
Grumpy Gamer
OCTOBER 25, 2018
I was running into a bug in my new compiler where large ints where loosing precision. After tracing through my compiler's C++ code for about an hour trying to catch the spot, I came to this function: int intConstValue() { return _type == kFloat ? I seem to recall being bitten by a similar bug 20 years ago. _float : _int; }.
Let's personalize your content