[thin_delta] Fix bug when comparing the mappings

This commit is contained in:
Joe Thornber 2016-02-17 11:44:44 +00:00
parent 09ce099c2f
commit 768bbd2715

View File

@ -432,7 +432,8 @@ namespace local {
mapping left_mapping; mapping left_mapping;
mapping right_mapping; mapping right_mapping;
while (left_it != left.end() && right_it != right.end()) { while ((left_mapping.len_ || left_it != left.end()) &&
(right_mapping.len_ || right_it != right.end())) {
if (!left_mapping.len_ && left_it != left.end()) if (!left_mapping.len_ && left_it != left.end())
left_mapping = *left_it++; left_mapping = *left_it++;