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
No related branches found
No related tags found
No related merge requests found
...@@ -339,7 +339,7 @@ class HPVMConfigBuilder: ...@@ -339,7 +339,7 @@ class HPVMConfigBuilder:
merged_to_original = [] merged_to_original = []
while lhs < len(types): while lhs < len(types):
widx = 0 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 rhs += 1
widx = rhs - lhs widx = rhs - lhs
if 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