summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r--lldb/scripts/Python/python-extensions.swig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/scripts/Python/python-extensions.swig b/lldb/scripts/Python/python-extensions.swig
index 050af3a9b0b..19868fba811 100644
--- a/lldb/scripts/Python/python-extensions.swig
+++ b/lldb/scripts/Python/python-extensions.swig
@@ -540,7 +540,7 @@ class value(object):
if type(key) is int:
return value(self.sbvalue.GetValueForExpressionPath("[%i]" % key))
if type(key) is value:
- return value(self.sbvalue.GetValueForExpressionPath("[%i]" % int(key))
+ return value(self.sbvalue.GetValueForExpressionPath("[%i]" % int(key)))
raise TypeError("No array item of type %s" % str(type(key)))
def __getattr__(self, name):
OpenPOWER on IntegriCloud