summaryrefslogtreecommitdiff
path: root/vpxenc.c
diff options
context:
space:
mode:
authorRalph Giles <giles@xiph.org>2011-03-07 13:00:05 -0800
committerRalph Giles <giles@xiph.org>2011-03-07 13:21:39 -0800
commitfe9a604b1ec8140817fc913a697d063ad547cace (patch)
tree2d82d2eadaf211b802583a669fa593d4327801a3 /vpxenc.c
parent3fae3283e6037a0b20f5e32402ba8e50d7ef859e (diff)
downloadlibvpx-fe9a604b1ec8140817fc913a697d063ad547cace.tar
libvpx-fe9a604b1ec8140817fc913a697d063ad547cace.tar.gz
libvpx-fe9a604b1ec8140817fc913a697d063ad547cace.tar.bz2
libvpx-fe9a604b1ec8140817fc913a697d063ad547cace.zip
Fix format-string warning
Cast size_t to (unsigned long) and print it with the %lu format string, which is more portable than C99's explict %zu for size_t. This truncates on Windows x64 but otherwise works on 32 and 64 bit platforms. In practice the stats file is unlikely to be so large. Change-Id: I0432b3acf85fc6ba4ad50640942e1ca4614b21cb
Diffstat (limited to 'vpxenc.c')
-rwxr-xr-xvpxenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpxenc.c b/vpxenc.c
index d0f4c2348..7b8de1171 100755
--- a/vpxenc.c
+++ b/vpxenc.c
@@ -163,8 +163,8 @@ int stats_open_file(stats_io_t *stats, const char *fpf, int pass)
if (!stats->buf.buf)
{
- fprintf(stderr, "Failed to allocate first-pass stats buffer (%d bytes)\n",
- stats->buf_alloc_sz);
+ fprintf(stderr, "Failed to allocate first-pass stats buffer (%lu bytes)\n",
+ (unsigned long)stats->buf_alloc_sz);
exit(EXIT_FAILURE);
}