diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-04-01 15:44:57 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-04-01 15:44:57 +0200 |
commit | d2cb8f4d4d829540f27f97d1d0d9cba3675fbedb (patch) | |
tree | d3380ecd0a724792dd503a4b3f8b80b3d038a4d3 /vendor/github.com/google/go-cmp/cmp/report_slices.go | |
parent | 0a839a59ec43ae03c522a1b82224605219256ab1 (diff) | |
download | podman-d2cb8f4d4d829540f27f97d1d0d9cba3675fbedb.tar.gz podman-d2cb8f4d4d829540f27f97d1d0d9cba3675fbedb.tar.bz2 podman-d2cb8f4d4d829540f27f97d1d0d9cba3675fbedb.zip |
[v4.0] bump buildah to 1.24.3
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'vendor/github.com/google/go-cmp/cmp/report_slices.go')
-rw-r--r-- | vendor/github.com/google/go-cmp/cmp/report_slices.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/google/go-cmp/cmp/report_slices.go b/vendor/github.com/google/go-cmp/cmp/report_slices.go index 2ad3bc85b..68b5c1ae1 100644 --- a/vendor/github.com/google/go-cmp/cmp/report_slices.go +++ b/vendor/github.com/google/go-cmp/cmp/report_slices.go @@ -80,7 +80,7 @@ func (opts formatOptions) CanFormatDiffSlice(v *valueNode) bool { } // Use specialized string diffing for longer slices or strings. - const minLength = 64 + const minLength = 32 return vx.Len() >= minLength && vy.Len() >= minLength } @@ -563,10 +563,10 @@ func cleanupSurroundingIdentical(groups []diffStats, eq func(i, j int) bool) []d nx := ds.NumIdentical + ds.NumRemoved + ds.NumModified ny := ds.NumIdentical + ds.NumInserted + ds.NumModified var numLeadingIdentical, numTrailingIdentical int - for i := 0; i < nx && i < ny && eq(ix+i, iy+i); i++ { + for j := 0; j < nx && j < ny && eq(ix+j, iy+j); j++ { numLeadingIdentical++ } - for i := 0; i < nx && i < ny && eq(ix+nx-1-i, iy+ny-1-i); i++ { + for j := 0; j < nx && j < ny && eq(ix+nx-1-j, iy+ny-1-j); j++ { numTrailingIdentical++ } if numIdentical := numLeadingIdentical + numTrailingIdentical; numIdentical > 0 { |