fix(library/match): index out of bounds
This commit is contained in:
parent
b5d1f4e54c
commit
e6f022e3f2
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ class match_fn : public match_context {
|
||||||
|
|
||||||
optional<level> _get_subst(level const & x) const {
|
optional<level> _get_subst(level const & x) const {
|
||||||
unsigned i = to_meta_idx(x);
|
unsigned i = to_meta_idx(x);
|
||||||
if (i > m_lsubst_sz)
|
if (i >= m_lsubst_sz)
|
||||||
throw_exception();
|
throw_exception();
|
||||||
return m_lsubst[i];
|
return m_lsubst[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue