[xiph-cvs] cvs commit: speex/libspeex bits.c sb_celp.c

Jean-Marc Valin jm at xiph.org
Mon Mar 17 22:13:30 PST 2003



jm          03/03/18 01:13:30

  Modified:    libspeex bits.c sb_celp.c
  Log:
  minor tweaks, removed some warnings

Revision  Changes    Path
1.27      +3 -3      speex/libspeex/bits.c

Index: bits.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/bits.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- bits.c	10 Mar 2003 17:16:17 -0000	1.26
+++ bits.c	18 Mar 2003 06:13:30 -0000	1.27
@@ -98,7 +98,7 @@
       speex_warning_int("Packet if larger than allocated buffer: ", len);
       if (bits->owner)
       {
-         char *tmp = speex_realloc(bits->bytes, len);
+         char *tmp = (char*)speex_realloc(bits->bytes, len);
          if (tmp)
          {
             bits->buf_size=len;
@@ -141,7 +141,7 @@
       speex_warning_int("Packet if larger than allocated buffer: ", len);
       if (bits->owner)
       {
-         char *tmp = speex_realloc(bits->bytes, (bits->nbBits>>3)+len+1);
+         char *tmp = (char*)speex_realloc(bits->bytes, (bits->nbBits>>3)+len+1);
          if (tmp)
          {
             bits->buf_size=(bits->nbBits>>3)+len+1;
@@ -203,7 +203,7 @@
       speex_warning("Buffer too small to pack bits");
       if (bits->owner)
       {
-         char *tmp = speex_realloc(bits->bytes, ((bits->buf_size+5)*3)>>1);
+         char *tmp = (char*)speex_realloc(bits->bytes, ((bits->buf_size+5)*3)>>1);
          if (tmp)
          {
             for (i=bits->buf_size;i<(((bits->buf_size+5)*3)>>1);i++)

<p><p>1.118     +1 -1      speex/libspeex/sb_celp.c

Index: sb_celp.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/sb_celp.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -r1.117 -r1.118
--- sb_celp.c	23 Jan 2003 07:29:39 -0000	1.117
+++ sb_celp.c	18 Mar 2003 06:13:30 -0000	1.118
@@ -808,7 +808,7 @@
    char *stack;
    float *low_pi_gain, *low_exc, *low_innov;
    float *awk1, *awk2, *awk3;
-   float dtx;
+   int dtx;
    SpeexSBMode *mode;
 
    st = (SBDecState*)state;

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list