Added comments about the usage of int(string, 0) and long(string, 0) which pass
a base of 0 so that the radix of the string is determined based on the contents
of string.
llvm-svn: 114764
diff --git a/lldb/test/bitfields/TestBitfields.py b/lldb/test/bitfields/TestBitfields.py
index c25c7bc..f3c71ee 100644
--- a/lldb/test/bitfields/TestBitfields.py
+++ b/lldb/test/bitfields/TestBitfields.py
@@ -108,6 +108,9 @@
bits.GetByteSize() == 4,
"(Bits)bits with byte size of 4 and 8 children")
+ # Notice the pattern of int(b1.GetValue(frame), 0). We pass a base of 0
+ # so that the proper radix is determined based on the contents of the
+ # string.
b1 = bits.GetChildAtIndex(0)
self.DebugSBValue(frame, b1)
self.assertTrue(b1.GetName() == "b1" and