[xiph-commits] r11992 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Thu Nov 2 03:58:55 PST 2006


Author: jm
Date: 2006-11-02 03:58:52 -0800 (Thu, 02 Nov 2006)
New Revision: 11992

Modified:
   trunk/speex/libspeex/pseudofloat.h
Log:
fixed an overflow when the numerator is negative


Modified: trunk/speex/libspeex/pseudofloat.h
===================================================================
--- trunk/speex/libspeex/pseudofloat.h	2006-11-02 10:01:57 UTC (rev 11991)
+++ trunk/speex/libspeex/pseudofloat.h	2006-11-02 11:58:52 UTC (rev 11992)
@@ -331,7 +331,7 @@
    int e=0;
    spx_int32_t num;
    spx_float_t r;
-   num = a.m;
+   num = ABS16(a.m);
    while (a.m >= b.m)
    {
       e++;



More information about the commits mailing list