summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlldb/examples/python/disasm-stress-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/disasm-stress-test.py b/lldb/examples/python/disasm-stress-test.py
index ac6b6ff5b48..ff199973d41 100755
--- a/lldb/examples/python/disasm-stress-test.py
+++ b/lldb/examples/python/disasm-stress-test.py
@@ -80,7 +80,7 @@ class SequentialInstructionProvider:
self.m_value += self.m_skip
return ret
def GetNumInstructions(self):
- return self.m_last / self.m_skip
+ return (self.m_last - self.m_start) / self.m_skip
def __iter__(self):
return self
def next(self):
OpenPOWER on IntegriCloud