diff options
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Host/common/Terminal.cpp')
-rw-r--r-- | contrib/llvm/tools/lldb/source/Host/common/Terminal.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/llvm/tools/lldb/source/Host/common/Terminal.cpp b/contrib/llvm/tools/lldb/source/Host/common/Terminal.cpp index f63c468..ca46eb0 100644 --- a/contrib/llvm/tools/lldb/source/Host/common/Terminal.cpp +++ b/contrib/llvm/tools/lldb/source/Host/common/Terminal.cpp @@ -8,6 +8,7 @@ //===----------------------------------------------------------------------===// #include "lldb/Host/Terminal.h" +#include "llvm/ADT/STLExtras.h" #include <fcntl.h> #include <signal.h> @@ -250,7 +251,7 @@ TerminalState::TTYStateIsValid() const bool TerminalState::ProcessGroupIsValid() const { - return m_process_group != -1; + return static_cast<int32_t>(m_process_group) != -1; } //------------------------------------------------------------------ @@ -274,7 +275,7 @@ TerminalStateSwitcher::~TerminalStateSwitcher () uint32_t TerminalStateSwitcher::GetNumberOfStates() const { - return sizeof(m_ttystates)/sizeof(TerminalState); + return llvm::array_lengthof(m_ttystates); } //------------------------------------------------------------------ |