From b2b3ff186070c4a887752abe8658c790d95b0d24 Mon Sep 17 00:00:00 2001 From: Chaoren Lin Date: Fri, 1 May 2015 16:58:18 +0000 Subject: [PATCH] Fixed some compiler warnings because of bit-width mismatches. llvm-svn: 236323 --- lldb/source/Host/common/NativeRegisterContext.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lldb/source/Host/common/NativeRegisterContext.cpp b/lldb/source/Host/common/NativeRegisterContext.cpp index 54e47a5479be..3787189828d1 100644 --- a/lldb/source/Host/common/NativeRegisterContext.cpp +++ b/lldb/source/Host/common/NativeRegisterContext.cpp @@ -375,7 +375,8 @@ NativeRegisterContext::ReadRegisterValueFromMemory ( if (src_len > dst_len) { - error.SetErrorStringWithFormat("%" PRIu64 " bytes is too big to store in register %s (%" PRIu64 " bytes)", (unsigned long long)src_len, reg_info->name, (unsigned long long)dst_len); + error.SetErrorStringWithFormat("%" PRIu64 " bytes is too big to store in register %s (%" PRIu64 " bytes)", + static_cast(src_len), reg_info->name, static_cast(dst_len)); return error; } @@ -398,7 +399,8 @@ NativeRegisterContext::ReadRegisterValueFromMemory ( if (bytes_read != src_len) { // This might happen if we read _some_ bytes but not all - error.SetErrorStringWithFormat("read %" PRIu64 " of %" PRIu64 " bytes", (unsigned long long)bytes_read, (unsigned long long)src_len); + error.SetErrorStringWithFormat("read %" PRIu64 " of %" PRIu64 " bytes", + static_cast(bytes_read), static_cast(src_len)); return error; } @@ -470,7 +472,8 @@ NativeRegisterContext::WriteRegisterValueToMemory ( if (bytes_written != bytes_copied) { // This might happen if we read _some_ bytes but not all - error.SetErrorStringWithFormat("only wrote %" PRIu64 " of %" PRIu64 " bytes", (unsigned long long)bytes_written, (unsigned long long)bytes_copied); + error.SetErrorStringWithFormat("only wrote %" PRIu64 " of %" PRIu64 " bytes", + static_cast(bytes_written), static_cast(bytes_copied)); } } }