[Lldb-commits] [lldb] r172506 - /lldb/trunk/source/Core/Scalar.cpp
Greg Clayton
gclayton at apple.com
Mon Jan 14 18:59:24 PST 2013
Author: gclayton
Date: Mon Jan 14 20:59:24 2013
New Revision: 172506
URL: http://llvm.org/viewvc/llvm-project?rev=172506&view=rev
Log:
<rdar://problem/13010909>
Don't accidentally sign extend unsigned bitfields.
Modified:
lldb/trunk/source/Core/Scalar.cpp
Modified: lldb/trunk/source/Core/Scalar.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Scalar.cpp?rev=172506&r1=172505&r2=172506&view=diff
==============================================================================
--- lldb/trunk/source/Core/Scalar.cpp (original)
+++ lldb/trunk/source/Core/Scalar.cpp Mon Jan 14 20:59:24 2013
@@ -2023,7 +2023,7 @@
return true;
case Scalar::e_ulong:
- m_data.ulong = SignedBits (m_data.ulong, msbit, lsbit);
+ m_data.ulong = UnsignedBits (m_data.ulong, msbit, lsbit);
return true;
case Scalar::e_slonglong:
@@ -2031,7 +2031,7 @@
return true;
case Scalar::e_ulonglong:
- m_data.ulonglong = SignedBits (m_data.ulonglong, msbit, lsbit);
+ m_data.ulonglong = UnsignedBits (m_data.ulonglong, msbit, lsbit);
return true;
}
return false;
More information about the lldb-commits
mailing list