Files
SDL/src
Sam Lantinga 337e4a4f6c Fixed bug 2050 - Obvious bugs in SDL_ltoa and SDL_lltoa
pjz

SDL_ltoa(-2147483648,s,10) only returns "-" because there is a bug in the code:

    if ( value < 0 ) {
        *bufp++ = '-';
        value = -value;
    }

but -(-2147483648) is still -2147483648 (0x80000000) as signed int (or long), so the following loop doesn't run at all. Similar bug are also in SDL_lltoa.

BTW, there is no sanity check for radix.
2013-12-11 21:17:24 -08:00
..
2013-10-17 23:02:29 -07:00
2013-11-14 20:24:40 -05:00
2013-11-22 13:24:53 -03:00
2013-11-18 20:22:36 -08:00
2013-11-14 00:52:39 -05:00
2013-10-17 23:02:29 -07:00
2013-10-17 23:02:29 -07:00