diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-09-20 17:04:41 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-09-20 17:04:41 +0000 |
| commit | 433d7741bdc771e9608027b6efe73eedb810f9d3 (patch) | |
| tree | f3820ccc5dbd679735d366b84a24344cfb1bc4ed /lldb/source/Core/Debugger.cpp | |
| parent | 7319327007ec5521cf2c245b08eb006ce4b420a5 (diff) | |
| download | bcm5719-llvm-433d7741bdc771e9608027b6efe73eedb810f9d3.tar.gz bcm5719-llvm-433d7741bdc771e9608027b6efe73eedb810f9d3.zip | |
Fixed wrong logic in validating term-width value; should be && instead of ||.
llvm-svn: 114330
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
| -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 eb46c238538..6eb237afd54 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -1313,7 +1313,7 @@ DebuggerInstanceSettings::ValidTermWidthValue (const char *value, Error err) if (end && end[0] == '\0') { - if (width >= 10 || width <= 1024) + if (width >= 10 && width <= 1024) valid = true; else err.SetErrorString ("Invalid term-width value; value must be between 10 and 1024.\n"); |

