mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
msvc ports for ilbc and lpc10 codec libs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@169 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -40,7 +40,7 @@ integer pow_ii(integer *ap, integer *bp)
|
||||
if (n == 0 || x == 1)
|
||||
return 1;
|
||||
if (x != -1)
|
||||
return x == 0 ? 1/x : 0;
|
||||
return x == 0 ? 0 : 1/x;
|
||||
n = -n;
|
||||
}
|
||||
u = n;
|
||||
@@ -80,6 +80,6 @@ integer i_nint(x) real *x;
|
||||
integer i_nint(real *x)
|
||||
#endif
|
||||
{
|
||||
return( (*x)>=0 ?
|
||||
floor(*x + .5) : -floor(.5 - *x) );
|
||||
return( (integer)((*x)>=0 ?
|
||||
floor(*x + .5) : -floor(.5 - *x)) );
|
||||
}
|
||||
|
Reference in New Issue
Block a user