From 43e0af06b4b69d784c87c4bfcaea01d825de1e65 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 18 Sep 2012 18:04:04 +0000 Subject: Stop using the "%z" size_t modifier and cast all size_t values to uint64_t. Some platforms don't support this modification. llvm-svn: 164148 --- lldb/source/Interpreter/OptionValueArray.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Interpreter/OptionValueArray.cpp') diff --git a/lldb/source/Interpreter/OptionValueArray.cpp b/lldb/source/Interpreter/OptionValueArray.cpp index fbddd7b70a3..1776b83cda5 100644 --- a/lldb/source/Interpreter/OptionValueArray.cpp +++ b/lldb/source/Interpreter/OptionValueArray.cpp @@ -126,9 +126,9 @@ OptionValueArray::GetSubValue (const ExecutionContext *exe_ctx, if (array_count == 0) error.SetErrorStringWithFormat("index %i is not valid for an empty array", idx); else if (idx > 0) - error.SetErrorStringWithFormat("index %i out of range, valid values are 0 through %zu", idx, array_count - 1); + error.SetErrorStringWithFormat("index %i out of range, valid values are 0 through %llu", idx, (uint64_t)(array_count - 1)); else - error.SetErrorStringWithFormat("negative index %i out of range, valid values are -1 through -%zu", idx, array_count); + error.SetErrorStringWithFormat("negative index %i out of range, valid values are -1 through -%llu", idx, (uint64_t)array_count); } } } -- cgit v1.2.3