[Lldb-commits] [lldb] r354803 - [lldb-mi] Fix conversion warning for 64-bit build

Tatyana Krasnukha via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 25 10:23:44 PST 2019


Author: tkrasnukha
Date: Mon Feb 25 10:23:44 2019
New Revision: 354803

URL: http://llvm.org/viewvc/llvm-project?rev=354803&view=rev
Log:
[lldb-mi] Fix conversion warning for 64-bit build

Modified:
    lldb/trunk/tools/lldb-mi/MICmnLLDBDebugger.cpp

Modified: lldb/trunk/tools/lldb-mi/MICmnLLDBDebugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnLLDBDebugger.cpp?rev=354803&r1=354802&r2=354803&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmnLLDBDebugger.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmnLLDBDebugger.cpp Mon Feb 25 10:23:44 2019
@@ -558,7 +558,7 @@ bool CMICmnLLDBDebugger::UnregisterForEv
       ClientGetMaskForAllClients(vBroadcasterClass);
   MIuint newEventMask = 0;
   for (MIuint i = 0; i < 32; i++) {
-    const MIuint bit = 1 << i;
+    const MIuint bit = MIuint(1) << i;
     const MIuint clientBit = bit & clientsEventMask;
     const MIuint othersBit = bit & otherClientsEventMask;
     if ((clientBit != 0) && (othersBit == 0)) {




More information about the lldb-commits mailing list