]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
use %ld instead of %d for “long int” arguments
authorThomas Debesse <dev@illwieckz.net>
Tue, 18 Jul 2017 09:12:51 +0000 (11:12 +0200)
committerThomas Debesse <dev@illwieckz.net>
Tue, 1 Aug 2017 14:31:20 +0000 (16:31 +0200)
- format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’
  use ‘%ld’ instead

tools/quake3/q3data/md3lib.c
tools/quake3/q3data/video.c

index f2f0eee5501ca6fcb98871d498e24a84cbe8ec84..66dfa52d8283682dcb46b8706aa1100ea25526e3 100644 (file)
@@ -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 );
index b7be982cf0d6599ae0855e9569374489c4c1efe3..9ce704a332c1b4fd6353b994d3e436961a8ae0bd 100644 (file)
@@ -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 );