Commit 2aa4f66e authored by Segher Boessenkool's avatar Segher Boessenkool

Fix gcc-ism (arithmetic on void *).

Closes #135.

svn path=/trunk/vorbis-tools/; revision=2981
parent d7308086
...@@ -11,7 +11,7 @@ ...@@ -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 @@ int ovf_read (decoder_t *decoder, void *ptr, int nbytes, int *eos, ...@@ -177,7 +177,7 @@ int ovf_read (decoder_t *decoder, void *ptr, int nbytes, int *eos,
} else { } else {
bytes_read += ret; bytes_read += ret;
ptr += ret; ptr = (void *)((unsigned char *)ptr + ret);
nbytes -= ret; nbytes -= ret;
/* did we enter a new logical bitstream? */ /* did we enter a new logical bitstream? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment