diff options
author | Matthew Fredrickson <creslin@digium.com> | 2006-02-10 23:37:27 +0000 |
---|---|---|
committer | Matthew Fredrickson <creslin@digium.com> | 2006-02-10 23:37:27 +0000 |
commit | 4f803dfda0ea9b498b887f8ba28fd5b1ba9dbc04 (patch) | |
tree | 57c12cf4eda0931613bfedd345484014eeabeb2f /codecs/lpc10/f2clib.c | |
parent | c344781c4bba6d7cb00aeaeb7348ab6228f2f771 (diff) |
Lots of little fixes for doing MSVC compiling codecs in windows (#6022)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'codecs/lpc10/f2clib.c')
-rw-r--r-- | codecs/lpc10/f2clib.c | 6 |
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)) ); } |