summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kögl <stefan@skoegl.net>2015-11-03 20:01:41 +0100
committerStefan Kögl <stefan@skoegl.net>2015-11-03 20:02:17 +0100
commit46ad04c19bef126088a42d15f63d4b3f974dca15 (patch)
tree268b2646b8062e692180c5b704ed592ec6845ce3
parent2a02d21d7bf7e017376b3e6f08d38e71343f6b98 (diff)
parent3f2328eb63507fe78a48c27cf677a6998f3c9f63 (diff)
downloadpython-json-patch-46ad04c19bef126088a42d15f63d4b3f974dca15.tar.gz
Merge pull request #46 from apinkney97/master, fixes #40
Fix bug in _split_by_common_seq using wrong range in right subtree
-rw-r--r--jsonpatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonpatch.py b/jsonpatch.py
index f62aa94..4ffd50f 100644
--- a/jsonpatch.py
+++ b/jsonpatch.py
@@ -641,7 +641,7 @@ def _split_by_common_seq(src, dst, bx=(0, -1), by=(0, -1)):
(by[0], by[0] + y[0])),
_split_by_common_seq(src[x[1]:], dst[y[1]:],
(bx[0] + x[1], bx[0] + len(src)),
- (bx[0] + y[1], bx[0] + len(dst)))]
+ (by[0] + y[1], by[0] + len(dst)))]
def _compare(path, src, dst, left, right):