diff options
| author | Greg Clayton <gclayton@apple.com> | 2014-03-03 19:15:20 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2014-03-03 19:15:20 +0000 |
| commit | 6fea17e8740b0c0687e0f945a3dd19eea32ec8e9 (patch) | |
| tree | 68ec1ece80c357f12891d4c6c9c74f9b7443eee1 /lldb/source/Symbol/SymbolContext.cpp | |
| parent | e6d398189e81533427e5ec0d6602310f67747603 (diff) | |
| download | bcm5719-llvm-6fea17e8740b0c0687e0f945a3dd19eea32ec8e9.tar.gz bcm5719-llvm-6fea17e8740b0c0687e0f945a3dd19eea32ec8e9.zip | |
"size_t" isn't always 64 bit, it is 32 bit on 32 bit systems. All printf style statements that were assuming size_t were 64 bit were changed, and they were also changed to display them as unsigned values as "size_t" isn't signed.
If you print anything with 'size_t', please cast it to "uint64_t" in the printf and use PRIu64 or PRIx64.
llvm-svn: 202738
Diffstat (limited to 'lldb/source/Symbol/SymbolContext.cpp')
| -rw-r--r-- | lldb/source/Symbol/SymbolContext.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Symbol/SymbolContext.cpp b/lldb/source/Symbol/SymbolContext.cpp index 0a350a2e1c1..14c133913ac 100644 --- a/lldb/source/Symbol/SymbolContext.cpp +++ b/lldb/source/Symbol/SymbolContext.cpp @@ -910,15 +910,15 @@ SymbolContextSpecifier::GetDescription (Stream *s, lldb::DescriptionLevel level) s->Printf ("File: %s", path_str); if (m_type == eLineStartSpecified) { - s->Printf (" from line %" PRId64 "", m_start_line); + s->Printf (" from line %" PRIu64 "", (uint64_t)m_start_line); if (m_type == eLineEndSpecified) - s->Printf ("to line %" PRId64 "", m_end_line); + s->Printf ("to line %" PRIu64 "", (uint64_t)m_end_line); else s->Printf ("to end"); } else if (m_type == eLineEndSpecified) { - s->Printf (" from start to line %" PRId64 "", m_end_line); + s->Printf (" from start to line %" PRIu64 "", (uint64_t)m_end_line); } s->Printf (".\n"); } @@ -926,16 +926,16 @@ SymbolContextSpecifier::GetDescription (Stream *s, lldb::DescriptionLevel level) if (m_type == eLineStartSpecified) { s->Indent(); - s->Printf ("From line %" PRId64 "", m_start_line); + s->Printf ("From line %" PRIu64 "", (uint64_t)m_start_line); if (m_type == eLineEndSpecified) - s->Printf ("to line %" PRId64 "", m_end_line); + s->Printf ("to line %" PRIu64 "", (uint64_t)m_end_line); else s->Printf ("to end"); s->Printf (".\n"); } else if (m_type == eLineEndSpecified) { - s->Printf ("From start to line %" PRId64 ".\n", m_end_line); + s->Printf ("From start to line %" PRIu64 ".\n", (uint64_t)m_end_line); } if (m_type == eFunctionSpecified) |

