[xiph-cvs] cvs commit: speex/src speexdec.c speexenc.c

Jean-Marc Valin jm at xiph.org
Sun Oct 27 00:08:21 PDT 2002



jm          02/10/27 02:08:21

  Modified:    src      speexdec.c speexenc.c
  Log:
  Get rid of warning

Revision  Changes    Path
1.53      +4 -4      speex/src/speexdec.c

Index: speexdec.c
===================================================================
RCS file: /usr/local/cvsroot/speex/src/speexdec.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- speexdec.c	27 Oct 2002 06:01:31 -0000	1.52
+++ speexdec.c	27 Oct 2002 07:08:21 -0000	1.53
@@ -64,10 +64,10 @@
 
 #define MAX_FRAME_SIZE 2000
 
-#define readint(buf, base) ((buf[base+3]<<24)&0xff000000| \
-                           (buf[base+2]<<16)&0xff0000| \
-                           (buf[base+1]<<8)&0xff00| \
-  	           	    buf[base]&0xff)
+#define readint(buf, base) (((buf[base+3]<<24)&0xff000000)| \
+                           ((buf[base+2]<<16)&0xff0000)| \
+                           ((buf[base+1]<<8)&0xff00)| \
+  	           	    (buf[base]&0xff))
 
 static void print_comments(char *comments, int length)
 {

<p><p>1.50      +7 -7      speex/src/speexenc.c

Index: speexenc.c
===================================================================
RCS file: /usr/local/cvsroot/speex/src/speexenc.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- speexenc.c	27 Oct 2002 06:01:31 -0000	1.49
+++ speexenc.c	27 Oct 2002 07:08:21 -0000	1.50
@@ -604,13 +604,13 @@
   If you have troubles, please write to ymnk at jcraft.com.
  */
 
-#define readint(buf, base) ((buf[base+3]<<24)&0xff000000| \
-                           (buf[base+2]<<16)&0xff0000| \
-                           (buf[base+1]<<8)&0xff00| \
-  	           	    buf[base]&0xff)
-#define writeint(buf, base, val) do{ buf[base+3]=(val>>24)&0xff; \
-                                     buf[base+2]=(val>>16)&0xff; \
-                                     buf[base+1]=(val>>8)&0xff; \
+#define readint(buf, base) (((buf[base+3]<<24)&0xff000000)| \
+                           ((buf[base+2]<<16)&0xff0000)| \
+                           ((buf[base+1]<<8)&0xff00)| \
+  	           	    (buf[base]&0xff))
+#define writeint(buf, base, val) do{ buf[base+3]=((val)>>24)&0xff; \
+                                     buf[base+2]=((val)>>16)&0xff; \
+                                     buf[base+1]=((val)>>8)&0xff; \
                                      buf[base]=(val)&0xff; \
                                  }while(0)
 

<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