Fix broken portable implementation of _lrintf, 2nd try :)

svn path=/trunk/; revision=50443
This commit is contained in:
Timo Kreuzer 2011-01-19 18:10:50 +00:00
parent 8c35fc79b8
commit 87100588dc

View file

@ -413,7 +413,7 @@ _lrintf(float f)
}
#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
}