diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-09-18 18:04:04 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-09-18 18:04:04 +0000 |
| commit | 43e0af06b4b69d784c87c4bfcaea01d825de1e65 (patch) | |
| tree | 940b1223e3317439d1cbbd6e59f0421904d90c46 /lldb/source/Interpreter/OptionValueArray.cpp | |
| parent | 402edbbe3918277bfedbd9f138c16ac515d8d9ef (diff) | |
| download | llvm-43e0af06b4b69d784c87c4bfcaea01d825de1e65.zip llvm-43e0af06b4b69d784c87c4bfcaea01d825de1e65.tar.gz llvm-43e0af06b4b69d784c87c4bfcaea01d825de1e65.tar.bz2 | |
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
Diffstat (limited to 'lldb/source/Interpreter/OptionValueArray.cpp')
| -rw-r--r-- | lldb/source/Interpreter/OptionValueArray.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/OptionValueArray.cpp b/lldb/source/Interpreter/OptionValueArray.cpp index fbddd7b7..1776b83 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); } } } |
