From b4c6dca39988f0b695e497e9a53d8b39e586c2e2 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Fri, 10 Apr 2015 01:25:15 +0200 Subject: Fix printf warnings --- src/mot-encoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mot-encoder.cpp') diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp index 9f502c1..eabca9b 100644 --- a/src/mot-encoder.cpp +++ b/src/mot-encoder.cpp @@ -144,7 +144,7 @@ struct fingerprint_t { } void disp(void) { - printf("%s_%d_%d:%d\n", s_name.c_str(), s_size, s_mtime, fidx); + printf("%s_%ld_%lu:%d\n", s_name.c_str(), s_size, s_mtime, fidx); } void load_from_file(const char* filepath) @@ -1309,7 +1309,7 @@ void History::disp_database() } else { for (id = 0; id < m_database.size(); id++) { - printf(" id %4d: ", id); + printf(" id %4zu: ", id); m_database[id].disp(); } } -- cgit v1.2.3