From 8c35fc79b8551b9e702a1f36ed932eb026f4fe20 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 19 Jan 2011 18:10:08 +0000 Subject: [PATCH] [GDI32] Fix broken portable implementation of _lrintf svn path=/trunk/; revision=50442 --- reactos/dll/win32/gdi32/include/gdi32p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/gdi32/include/gdi32p.h b/reactos/dll/win32/gdi32/include/gdi32p.h index 6fa4a1d2b3a..dc573ada171 100644 --- a/reactos/dll/win32/gdi32/include/gdi32p.h +++ b/reactos/dll/win32/gdi32/include/gdi32p.h @@ -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 }