From 1a6d2aa49c4ad54e1da6bd1047f9b9ceb08fd9e2 Mon Sep 17 00:00:00 2001 From: jakcron Date: Fri, 29 Jun 2018 15:26:11 +0800 Subject: [PATCH] [fnd] Silence warnings. --- lib/libfnd/source/SimpleTextOutput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libfnd/source/SimpleTextOutput.cpp b/lib/libfnd/source/SimpleTextOutput.cpp index e1efc77..7dbc17d 100644 --- a/lib/libfnd/source/SimpleTextOutput.cpp +++ b/lib/libfnd/source/SimpleTextOutput.cpp @@ -6,7 +6,7 @@ void fnd::SimpleTextOutput::hxdStyleDump(const byte_t* data, size_t len, size_t // iterate over blocks for (size_t i = 0; i < (len / row_len); i++) { - printf("%08" PRIx64 " | ", i*row_len); + printf("%08" PRIx64 " | ", (uint64_t)(i * row_len)); // for block i print each byte for (size_t j = 0; j < row_len; j++) { @@ -26,7 +26,7 @@ void fnd::SimpleTextOutput::hxdStyleDump(const byte_t* data, size_t len, size_t if ((len % row_len) > 0) { size_t i = (len / row_len); - printf("%08" PRIx64 " | ", i * row_len); + printf("%08" PRIx64 " | ", (uint64_t)(i * row_len)); // for block i print each byte for (size_t j = 0; j < row_len; j++) {