diff --git a/ChangeLog b/ChangeLog index 65587e10..b0a0bc5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-09-16 Erik de Castro Lopo + + * src/caf.c + Use the correct C99 format specifier for int64_t. + 2009-09-15 Erik de Castro Lopo * src/aiff.c src/wav.c diff --git a/src/caf.c b/src/caf.c index 68cabc6f..082ffc89 100644 --- a/src/caf.c +++ b/src/caf.c @@ -23,6 +23,7 @@ #include #include #include +#include #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) ; } ;