From: Thomas Debesse Date: Tue, 18 Jul 2017 09:12:51 +0000 (+0200) Subject: use %ld instead of %d for “long int” arguments X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f88d626e7c4c1dcd153d755de47620a5e9557af0;p=xonotic%2Fnetradiant.git use %ld instead of %d for “long int” arguments - format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ use ‘%ld’ instead --- diff --git a/tools/quake3/q3data/md3lib.c b/tools/quake3/q3data/md3lib.c index f2f0eee5..66dfa52d 100644 --- a/tools/quake3/q3data/md3lib.c +++ b/tools/quake3/q3data/md3lib.c @@ -168,7 +168,7 @@ void MD3_Dump( const char *filename ){ printf( " num tags: %d\n", header.numTags ); printf( " num surfaces: %d\n", header.numSurfaces ); printf( " num skins: %d\n", header.numSkins ); - printf( " file size: %d\n", fileSize ); + printf( " file size: %ld\n", fileSize ); printf( "--- TAGS ---\n" ); pTag = ( md3Tag_t * ) ( ( ( char * ) buffer ) + header.ofsTags ); diff --git a/tools/quake3/q3data/video.c b/tools/quake3/q3data/video.c index b7be982c..9ce704a3 100644 --- a/tools/quake3/q3data/video.c +++ b/tools/quake3/q3data/video.c @@ -1107,7 +1107,7 @@ void Cmd_Video( void ){ printf( "\n" ); - printf( "Total size: %i\n", ftell( output ) ); + printf( "Total size: %ld\n", ftell( output ) ); printf( "Average error: %f\n", sumError / ( frame - startframe ) ); printf( "Max error: %f\n", maxError );