Skip to content

Commit 3f2328e

Browse files
author
Alex Pinkney
committed
Fix bug in _split_by_common_seq using wrong range in right subtree
1 parent 99bf616 commit 3f2328e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonpatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def _split_by_common_seq(src, dst, bx=(0, -1), by=(0, -1)):
641641
(by[0], by[0] + y[0])),
642642
_split_by_common_seq(src[x[1]:], dst[y[1]:],
643643
(bx[0] + x[1], bx[0] + len(src)),
644-
(bx[0] + y[1], bx[0] + len(dst)))]
644+
(by[0] + y[1], by[0] + len(dst)))]
645645

646646

647647
def _compare(path, src, dst, left, right):

0 commit comments

Comments
 (0)