sdl2_frt/src/stdlib
Sam Lantinga 35ab76d083 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
..
SDL_getenv.c Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
SDL_iconv.c Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
SDL_malloc.c Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
SDL_qsort.c Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
SDL_stdlib.c Hook up SDL_acos and SDL_asin properly. 2013-12-09 15:17:20 -05:00
SDL_string.c Fixed bug 2050 - Obvious bugs in SDL_ltoa and SDL_lltoa 2013-12-11 21:17:24 -08:00