[thin_delta] Fix bug when comparing the mappings

This commit is contained in:
Joe Thornber 2016-02-17 11:44:44 +00:00
parent 0d510924d5
commit 7c2b3fb671

View File

@ -432,7 +432,8 @@ namespace local {
mapping left_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())
left_mapping = *left_it++;