diff options
author | Ralph Giles <giles@xiph.org> | 2010-03-26 03:19:12 +0000 |
---|---|---|
committer | Ralph Giles <giles@xiph.org> | 2010-03-26 03:19:12 +0000 |
commit | 9f333772fe5e1bde55226d0374e6814bcc8ac677 (patch) | |
tree | c8ec6c18f837a9b46333d03c2d1197a0babc6f39 /src | |
parent | 3922fa4b590a3c7e75bb02751d8f022251839363 (diff) | |
download | ogg-git-9f333772fe5e1bde55226d0374e6814bcc8ac677.tar.gz |
Fix int vs long issues with the framing self-test code.
Warnings reported by clang (the llvm C compiler).
svn path=/trunk/ogg/; revision=17060
Diffstat (limited to 'src')
-rw-r--r-- | src/framing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/framing.c b/src/framing.c index 4f139f7..ca93036 100644 --- a/src/framing.c +++ b/src/framing.c @@ -1007,13 +1007,13 @@ void ogg_packet_clear(ogg_packet *op) { ogg_stream_state os_en, os_de; ogg_sync_state oy; -void checkpacket(ogg_packet *op,int len, int no, int pos){ +void checkpacket(ogg_packet *op,long len, int no, long pos){ long j; static int sequence=0; static int lastno=0; if(op->bytes!=len){ - fprintf(stderr,"incorrect packet length (%d != %d)!\n",op->bytes,len); + fprintf(stderr,"incorrect packet length (%ld != %ld)!\n",op->bytes,len); exit(1); } if(op->granulepos!=pos){ @@ -1544,7 +1544,7 @@ void test_pack(const int *pl, const int **headers, int byteskip, if(ret<0)continue; /* got a page. Happy happy. Verify that it's good. */ - fprintf(stderr,"(%ld), ",pageout); + fprintf(stderr,"(%d), ",pageout); check_page(data+deptr,headers[pageout],&og_de); deptr+=og_de.body_len; |