clear pdl after comparing partial strings (#3048)

This commit is contained in:
Mark Thom
2025-08-16 15:26:10 -07:00
parent 87f5295bd0
commit 93cc4d4898

View File

@@ -564,9 +564,11 @@ impl MachineState {
self.pdl.push(v2.offset_by(l2));
}
PStrSegmentCmpResult::Less => {
self.pdl.clear();
return Some(Ordering::Less);
}
PStrSegmentCmpResult::Greater => {
self.pdl.clear();
return Some(Ordering::Greater);
}
}