clear pdl after comparing partial strings (#3048)
This commit is contained in:
@@ -564,9 +564,11 @@ impl MachineState {
|
|||||||
self.pdl.push(v2.offset_by(l2));
|
self.pdl.push(v2.offset_by(l2));
|
||||||
}
|
}
|
||||||
PStrSegmentCmpResult::Less => {
|
PStrSegmentCmpResult::Less => {
|
||||||
|
self.pdl.clear();
|
||||||
return Some(Ordering::Less);
|
return Some(Ordering::Less);
|
||||||
}
|
}
|
||||||
PStrSegmentCmpResult::Greater => {
|
PStrSegmentCmpResult::Greater => {
|
||||||
|
self.pdl.clear();
|
||||||
return Some(Ordering::Greater);
|
return Some(Ordering::Greater);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user