Author: tkreuzer
Date: Wed Jan 19 18:10:08 2011
New Revision: 50442
URL:
http://svn.reactos.org/svn/reactos?rev=50442&view=rev
Log:
[GDI32]
Fix broken portable implementation of _lrintf
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/gd…
==============================================================================
--- 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:08 2011
@@ -413,7 +413,7 @@
}
#else
/* slow, but portable */
- return (int)floor(x >= 0 ? x+0.5 : x-0.5);
+ return (int)(x >= 0 ? x+0.5 : x-0.5);
#endif
}