Remove 2038 Remove Bug Remove Code
article thumbnail

Casting Values

Grumpy Gamer

I have a scary Halloween story to tell you… 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 ?

Bug 52
article thumbnail

Casting Values

Grumpy Gamer

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; }.

Bug 40