From 3f2328eb63507fe78a48c27cf677a6998f3c9f63 Mon Sep 17 00:00:00 2001 From: Alex Pinkney Date: Tue, 3 Nov 2015 17:04:12 +0000 Subject: Fix bug in _split_by_common_seq using wrong range in right subtree --- jsonpatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.1