Make every Python API __len__() method return a PyIntObject.
swig 2.0+ seems to default to using PyLongObjects, but the __len__()
method _must_ return a PyIntObject.
llvm-svn: 156639
diff --git a/lldb/scripts/Python/interface/SBInstructionList.i b/lldb/scripts/Python/interface/SBInstructionList.i
index b2bb349..9f4a1b0 100644
--- a/lldb/scripts/Python/interface/SBInstructionList.i
+++ b/lldb/scripts/Python/interface/SBInstructionList.i
@@ -62,7 +62,7 @@
%pythoncode %{
def __len__(self):
'''Access len of the instruction list.'''
- return self.GetSize();
+ return int(self.GetSize())
def __getitem__(self, key):
'''Access instructions by integer index.'''