commit | 7a0c126d5fc4789eebebf41331ae70d7492b635c | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <spearce@spearce.org> | Sun Oct 10 13:08:50 2010 -0700 |
committer | Shawn O. Pearce <spearce@spearce.org> | Sun Oct 10 14:39:29 2010 -0700 |
tree | 0ba62e955de852139da5f885227cd767fb10d251 | |
parent | be2ddff6a72cff3d28b87d038a96194a6e2bd272 [diff] |
Fix infinite loop in PatienceDiff Certain inputs caused an infinite loop because the prior match data couldn't be used as expected. Rather than incrementing the match pointer before looking at an element, do it after, so the loop breaks when we wrap around to the starting point. Change-Id: Ieab28bb3485a914eeddc68aa38c256f255dd778c Signed-off-by: Shawn O. Pearce <spearce@spearce.org>