Skip to content
Snippets Groups Projects
Commit e799ec08 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Fixed an out-of-bound bug

parent d0517903
Branches hpvm
No related tags found
No related merge requests found
......@@ -339,7 +339,7 @@ class HPVMConfigBuilder:
merged_to_original = []
while lhs < len(types):
widx = 0
while widx < len(mm) and types[rhs] in mm[widx]:
while widx < len(mm) and rhs < len(types) and types[rhs] in mm[widx]:
rhs += 1
widx = rhs - lhs
if rhs == lhs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment