[ros-dev] [ros-diffs] [tkreuzer] 50443: [GDI32] Fix broken portable implementation of _lrintf, 2nd try :)

Aleksey Bragin aleksey at reactos.org
Wed Jan 19 22:16:44 UTC 2011


I bet _lrintf just needed more underscores! ;)

On Jan 19, 2011, at 9:10 PM, tkreuzer at svn.reactos.org wrote:

> Author: tkreuzer
> Date: Wed Jan 19 18:10:50 2011
> New Revision: 50443
>
> URL: http://svn.reactos.org/svn/reactos?rev=50443&view=rev
> Log:
> [GDI32]
> Fix broken portable implementation of _lrintf, 2nd try :)
>
> Modified:
>     trunk/reactos/dll/win32/gdi32/include/gdi32p.h
>
> Modified: trunk/reactos/dll/win32/gdi32/include/gdi32p.h
> URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ 
> gdi32/include/gdi32p.h?rev=50443&r1=50442&r2=50443&view=diff
> ====================================================================== 
> ========
> --- trunk/reactos/dll/win32/gdi32/include/gdi32p.h [iso-8859-1]  
> (original)
> +++ trunk/reactos/dll/win32/gdi32/include/gdi32p.h [iso-8859-1] Wed  
> Jan 19 18:10:50 2011
> @@ -413,7 +413,7 @@
>      }
>  #else
>      /* slow, but portable */
> -    return (int)(x >= 0 ? x+0.5 : x-0.5);
> +    return (int)(f >= 0 ? f+0.5 : f-0.5);
>  #endif
>  }
>
>
>




More information about the Ros-dev mailing list