Skip to content

Commit 6c1b15b

Browse files
committed
[lldb] Fix GetTerminalWidth after afd4690
afd4690 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. (cherry picked from commit 354401f)
1 parent ef4c84b commit 6c1b15b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Core/Debugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ bool Debugger::SetREPLLanguage(lldb::LanguageType repl_lang) {
365365

366366
uint64_t Debugger::GetTerminalWidth() const {
367367
const uint32_t idx = ePropertyTerminalWidth;
368-
return GetPropertyAtIndexAs<int64_t>(
368+
return GetPropertyAtIndexAs<uint64_t>(
369369
idx, g_debugger_properties[idx].default_uint_value);
370370
}
371371

0 commit comments

Comments
 (0)