diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2024-02-22 23:53:12 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2024-02-22 23:54:13 -0800 |
commit | 354401f8d3dc08ed41895d03a12a122e9cc0482c (patch) | |
tree | d39a724d72cc2484e2c79db98f5666605264e8f2 /lldb/source | |
parent | 1fe6be8794964c011aeba7a66bd2dcd891d21ab0 (diff) | |
download | llvm-354401f8d3dc08ed41895d03a12a122e9cc0482c.zip llvm-354401f8d3dc08ed41895d03a12a122e9cc0482c.tar.gz llvm-354401f8d3dc08ed41895d03a12a122e9cc0482c.tar.bz2 |
[lldb] Fix GetTerminalWidth after afd469023aad
afd469023aad fixed the type of the term-width setting but the getter
(Debugger::GetTerminalWidth) was still trying to get the terminal width
as an unsigned. This fixes TestXMLRegisterFlags.py.
Diffstat (limited to 'lldb/source')
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index bb81110..c3e603d 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -365,7 +365,7 @@ bool Debugger::SetREPLLanguage(lldb::LanguageType repl_lang) { uint64_t Debugger::GetTerminalWidth() const { const uint32_t idx = ePropertyTerminalWidth; - return GetPropertyAtIndexAs<int64_t>( + return GetPropertyAtIndexAs<uint64_t>( idx, g_debugger_properties[idx].default_uint_value); } |