diff options
| author | Chaoren Lin <chaorenl@google.com> | 2015-06-01 04:28:12 +0000 |
|---|---|---|
| committer | Chaoren Lin <chaorenl@google.com> | 2015-06-01 04:28:12 +0000 |
| commit | 0dba2b399e1cd331f70002f6b922e45bda2b5c2c (patch) | |
| tree | 92bbd9388065919cf5357b67a63b34a6d33bc36c | |
| parent | 476679aee403c49a8c20edf8d604c8a37dd993b8 (diff) | |
| download | bcm5719-llvm-0dba2b399e1cd331f70002f6b922e45bda2b5c2c.tar.gz bcm5719-llvm-0dba2b399e1cd331f70002f6b922e45bda2b5c2c.zip | |
Remove "%zu" format specifier for MSVC.
Reviewers: zturner
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D10153
llvm-svn: 238722
| -rw-r--r-- | lldb/source/Symbol/ClangASTType.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Symbol/ClangASTType.cpp b/lldb/source/Symbol/ClangASTType.cpp index c3ad09b4226..94e0663fd25 100644 --- a/lldb/source/Symbol/ClangASTType.cpp +++ b/lldb/source/Symbol/ClangASTType.cpp @@ -3712,7 +3712,7 @@ ClangASTType::GetChildClangTypeAtIndex (ExecutionContext *exe_ctx, if (element_type.GetCompleteType()) { char element_name[64]; - ::snprintf (element_name, sizeof (element_name), "[%zu]", idx); + ::snprintf(element_name, sizeof(element_name), "[%" PRIu64 "]", static_cast<uint64_t>(idx)); child_name.assign(element_name); child_byte_size = element_type.GetByteSize(exe_ctx ? exe_ctx->GetBestExecutionContextScope() : NULL); child_byte_offset = (int32_t)idx * (int32_t)child_byte_size; @@ -3733,7 +3733,7 @@ ClangASTType::GetChildClangTypeAtIndex (ExecutionContext *exe_ctx, if (element_type.GetCompleteType()) { char element_name[64]; - ::snprintf (element_name, sizeof (element_name), "[%zu]", idx); + ::snprintf(element_name, sizeof(element_name), "[%" PRIu64 "]", static_cast<uint64_t>(idx)); child_name.assign(element_name); child_byte_size = element_type.GetByteSize(exe_ctx ? exe_ctx->GetBestExecutionContextScope() : NULL); child_byte_offset = (int32_t)idx * (int32_t)child_byte_size; |

