Skip to content

Commit 46ad04c

Browse files
committed
Merge pull request #46 from apinkney97/master, fixes #40
Fix bug in _split_by_common_seq using wrong range in right subtree
2 parents 2a02d21 + 3f2328e commit 46ad04c

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)