fixes off-by-one and testing issue discussed in 889
This commit is contained in:
parent
ce784e0491
commit
f14fac3f7d
@ -356,14 +356,14 @@ public:
|
|||||||
name_id < m_name_begin_indices.size(),
|
name_id < m_name_begin_indices.size(),
|
||||||
"name id too high"
|
"name id too high"
|
||||||
);
|
);
|
||||||
unsigned begin_index = m_name_begin_indices[name_id];
|
const unsigned begin_index = m_name_begin_indices[name_id];
|
||||||
unsigned end_index = m_name_begin_indices[name_id+1];
|
const unsigned end_index = m_name_begin_indices[name_id+1];
|
||||||
BOOST_ASSERT_MSG(
|
BOOST_ASSERT_MSG(
|
||||||
begin_index < m_names_char_list.size(),
|
begin_index <= m_names_char_list.size(),
|
||||||
"begin index of name too high"
|
"begin index of name too high"
|
||||||
);
|
);
|
||||||
BOOST_ASSERT_MSG(
|
BOOST_ASSERT_MSG(
|
||||||
end_index < m_names_char_list.size(),
|
end_index <= m_names_char_list.size(),
|
||||||
"end index of name too high"
|
"end index of name too high"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user