src/caf.c : Use the correct C99 format specifier for int64_t.

This commit is contained in:
Erik de Castro Lopo 2009-09-16 18:01:18 +10:00
parent 5de5efd075
commit d93cfa8c5f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-09-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/caf.c
Use the correct C99 format specifier for int64_t.
2009-09-15 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/aiff.c src/wav.c

View File

@ -23,6 +23,7 @@
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <inttypes.h>
#include "sndfile.h"
#include "sfendian.h"
@ -320,7 +321,7 @@ caf_read_header (SF_PRIVATE *psf)
psf->peak_info->peaks [k].value = value ;
psf->peak_info->peaks [k].position = position ;
snprintf (psf->u.cbuf, sizeof (psf->u.cbuf), " %2d %-12ld %g\n", k, (long) position, value) ;
snprintf (psf->u.cbuf, sizeof (psf->u.cbuf), " %2d %-12" PRId64 " %g\n", k, position, value) ;
psf_log_printf (psf, psf->u.cbuf) ;
} ;