Commit 0697c6d8 authored by hjk's avatar hjk

Debugger: Fix array access with LLDB if index is a long

Triggered with the QGraphicsPolygonItem dumper on Linux.

Change-Id: I1374ca308c732eb5c25da959d8b499515ed72e66
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent d6fd56ba
......@@ -69,7 +69,7 @@ Value = lldb.SBValue
def impl_SBValue__add__(self, offset):
if self.GetType().IsPointerType():
if isinstance(offset, int):
if isinstance(offset, int) or isinstance(offset, long):
pass
else:
offset = offset.GetValueAsSigned()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment