<p dir="ltr">I wonder if it'll be worth the effort to convert everything to use C++ streams instead.</p>
<div class="gmail_quote">On May 31, 2015 21:32, "Chaoren Lin" <<a href="mailto:chaorenl@google.com">chaorenl@google.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">REPOSITORY<br>
rL LLVM<br>
<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_D10153&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=MEqT8U_n7oNfuDW5NRbY3ZV384ZquXIYFPWmprwUdKM&m=DRCYaWD0cPct5bwcVP0s3USuOWOWgORIVCqfgH53ROg&s=UIB9RP8iYg3NLB1wO9vQU3Jq7ZqD6zD-vCNJ6q9i6JA&e=" target="_blank">http://reviews.llvm.org/D10153</a><br>
<br>
Files:<br>
lldb/trunk/source/Symbol/ClangASTType.cpp<br>
<br>
Index: lldb/trunk/source/Symbol/ClangASTType.cpp<br>
===================================================================<br>
--- lldb/trunk/source/Symbol/ClangASTType.cpp<br>
+++ lldb/trunk/source/Symbol/ClangASTType.cpp<br>
@@ -3712,7 +3712,7 @@<br>
if (element_type.GetCompleteType())<br>
{<br>
char element_name[64];<br>
- ::snprintf (element_name, sizeof (element_name), "[%zu]", idx);<br>
+ ::snprintf(element_name, sizeof(element_name), "[%" PRIu64 "]", static_cast<uint64_t>(idx));<br>
child_name.assign(element_name);<br>
child_byte_size = element_type.GetByteSize(exe_ctx ? exe_ctx->GetBestExecutionContextScope() : NULL);<br>
child_byte_offset = (int32_t)idx * (int32_t)child_byte_size;<br>
@@ -3733,7 +3733,7 @@<br>
if (element_type.GetCompleteType())<br>
{<br>
char element_name[64];<br>
- ::snprintf (element_name, sizeof (element_name), "[%zu]", idx);<br>
+ ::snprintf(element_name, sizeof(element_name), "[%" PRIu64 "]", static_cast<uint64_t>(idx));<br>
child_name.assign(element_name);<br>
child_byte_size = element_type.GetByteSize(exe_ctx ? exe_ctx->GetBestExecutionContextScope() : NULL);<br>
child_byte_offset = (int32_t)idx * (int32_t)child_byte_size;<br>
<br>
EMAIL PREFERENCES<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_settings_panel_emailpreferences_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=MEqT8U_n7oNfuDW5NRbY3ZV384ZquXIYFPWmprwUdKM&m=DRCYaWD0cPct5bwcVP0s3USuOWOWgORIVCqfgH53ROg&s=tN8rq4D6AavLuZTl9OwGRYMqTTCJJfJz-Q_uM5kY4Ys&e=" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
</blockquote></div>