[xiph-commits] r17060 - trunk/ogg/src
giles at svn.xiph.org
giles at svn.xiph.org
Thu Mar 25 20:19:12 PDT 2010
Author: giles
Date: 2010-03-25 20:19:12 -0700 (Thu, 25 Mar 2010)
New Revision: 17060
Modified:
trunk/ogg/src/framing.c
Log:
Fix int vs long issues with the framing self-test code.
Warnings reported by clang (the llvm C compiler).
Modified: trunk/ogg/src/framing.c
===================================================================
--- trunk/ogg/src/framing.c 2010-03-26 02:57:50 UTC (rev 17059)
+++ trunk/ogg/src/framing.c 2010-03-26 03:19:12 UTC (rev 17060)
@@ -1007,13 +1007,13 @@
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 @@
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;
More information about the commits
mailing list