• Show log

    Commit

  • Hash : 8574c081
    Author : Sam Lantinga
    Date : 2013-11-27T00:29:46

    Fixed bug 2274 - SDL_ceil is incorrectly implemented when HAVE_LIBC is not defined
    
    Ghassan Al-Mashareqa
    
    The SDL_ceil function is implemented incorrectly when HAVE_CEIL is not defined (HAVE_LIBC not defined).
    
    The following code:
    
        double val = SDL_ceil(2.3);
        printf("%g", val);
    
    prints "2.0", as STD_ceil is defined as:
    
        double
        SDL_ceil(double x)
        {
        #ifdef HAVE_CEIL
            return ceil(x);
        #else
            return (double)(int)((x)+0.5);
        #endif /* HAVE_CEIL */
        }
    
    This functions is used in the SDL_BuildAudioResampleCVT function of the audio subsystem (SDL_audiocvt.c), and causes a bug in that function.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags