aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/lpc10/f2clib.c
diff options
context:
space:
mode:
authormattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-10 23:37:27 +0000
committermattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-10 23:37:27 +0000
commit00dd1704f15d77f4b5ca3694493812b8e49a8696 (patch)
tree57c12cf4eda0931613bfedd345484014eeabeb2f /codecs/lpc10/f2clib.c
parent864716935ab085c63a1d6f1bef5beae1dbc76d97 (diff)
Lots of little fixes for doing MSVC compiling codecs in windows (#6022)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9450 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/lpc10/f2clib.c')
-rw-r--r--codecs/lpc10/f2clib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/codecs/lpc10/f2clib.c b/codecs/lpc10/f2clib.c
index e72c307c6..037172828 100644
--- a/codecs/lpc10/f2clib.c
+++ b/codecs/lpc10/f2clib.c
@@ -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)) );
}