[GDI32]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 19 Jan 2011 18:10:08 +0000 (18:10 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 19 Jan 2011 18:10:08 +0000 (18:10 +0000)
Fix broken portable implementation of _lrintf

svn path=/trunk/; revision=50442

reactos/dll/win32/gdi32/include/gdi32p.h

index 6fa4a1d..dc573ad 100644 (file)
@@ -413,7 +413,7 @@ _lrintf(float f)
     }
 #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
 }