Fix a bug with order of operations.
authorZachary Turner <zturner@google.com>
Fri, 18 Jul 2014 21:03:06 +0000 (21:03 +0000)
committerZachary Turner <zturner@google.com>
Fri, 18 Jul 2014 21:03:06 +0000 (21:03 +0000)
llvm-svn: 213411

lldb/source/Interpreter/ScriptInterpreterPython.cpp

index ac4b29f..01789e4 100644 (file)
@@ -2446,7 +2446,7 @@ ScriptInterpreterPython::RunScriptBasedCommand(const char* impl_function,
     
     {
         Locker py_lock(this,
-                       Locker::AcquireLock | Locker::InitSession | cmd_retobj.GetInteractive() ? 0 : Locker::NoSTDIN,
+                       Locker::AcquireLock | Locker::InitSession | (cmd_retobj.GetInteractive() ? 0 : Locker::NoSTDIN),
                        Locker::FreeLock    | Locker::TearDownSession);
         
         SynchronicityHandler synch_handler(debugger_sp,