[xiph-cvs] cvs commit: vorbis-tools/ogg123 oggvorbis_format.c

Segher Boessenkool segher at xiph.org
Wed Jan 23 08:14:26 PST 2002



segher      02/01/23 08:14:26

  Modified:    ogg123   oggvorbis_format.c
  Log:
  Fix gcc-ism (arithmetic on void *).
  
  Closes #135.

Revision  Changes    Path
1.5       +2 -2      vorbis-tools/ogg123/oggvorbis_format.c

Index: oggvorbis_format.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogg123/oggvorbis_format.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- oggvorbis_format.c	2002/01/03 10:40:40	1.4
+++ oggvorbis_format.c	2002/01/23 16:14:25	1.5
@@ -11,7 +11,7 @@
  *                                                                  *
  ********************************************************************
 
- last mod: $Id: oggvorbis_format.c,v 1.4 2002/01/03 10:40:40 segher Exp $
+ last mod: $Id: oggvorbis_format.c,v 1.5 2002/01/23 16:14:25 segher Exp $
 
  ********************************************************************/
 
@@ -177,7 +177,7 @@
     } else {
       
       bytes_read += ret;
-      ptr += ret;
+      ptr = (void *)((unsigned char *)ptr + ret);
       nbytes -= ret;
 
       /* did we enter a new logical bitstream? */

<p><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