The lrintf function should use "long" instead of "int"

for the type of its internal variable.
This commit is contained in:
Luis Ibanez 2010-08-22 18:58:28 +00:00
parent 3e5715a994
commit 6ab100903e
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ static INLINE long lrintf(float f){
}
#else
static INLINE long lrintf(float x){
int r;
long r;
if (x>=0.f)
{
x+=0.5f;
@ -113,7 +113,7 @@ static INLINE long lrintf(float x){
{
x-=0.5f;
}
r = (int)(x);
r = (long)(x);
if ( x != (float)(r) ) return r;
return 2*(r/2);
}