diff options
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)) ); } |