Fix broken portable implementation of _lrintf

svn path=/trunk/; revision=50442
This commit is contained in:
Timo Kreuzer 2011-01-19 18:10:08 +00:00
parent d0f0bdb64b
commit 8c35fc79b8

View 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
}