diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-09 17:47:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 17:47:47 +0200 |
commit | fbe09d78e91c9ac5cadc8b00a67c7d7f89d64868 (patch) | |
tree | e241ba0e0521f9def4bb3124bac1e624383448b2 /vendor/github.com/json-iterator/go/any_str.go | |
parent | 607cfa3ffb6ae54dc196827b4705601bf4c386e2 (diff) | |
parent | 2df9edbd4fafa12387c71ebd048dbb9e1814c3fc (diff) | |
download | podman-fbe09d78e91c9ac5cadc8b00a67c7d7f89d64868.tar.gz podman-fbe09d78e91c9ac5cadc8b00a67c7d7f89d64868.tar.bz2 podman-fbe09d78e91c9ac5cadc8b00a67c7d7f89d64868.zip |
Merge pull request #6533 from containers/dependabot/go_modules/github.com/json-iterator/go-1.1.10
Bump github.com/json-iterator/go from 1.1.9 to 1.1.10
Diffstat (limited to 'vendor/github.com/json-iterator/go/any_str.go')
-rw-r--r-- | vendor/github.com/json-iterator/go/any_str.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/json-iterator/go/any_str.go b/vendor/github.com/json-iterator/go/any_str.go index a4b93c78c..1f12f6612 100644 --- a/vendor/github.com/json-iterator/go/any_str.go +++ b/vendor/github.com/json-iterator/go/any_str.go @@ -64,7 +64,6 @@ func (any *stringAny) ToInt64() int64 { flag := 1 startPos := 0 - endPos := 0 if any.val[0] == '+' || any.val[0] == '-' { startPos = 1 } @@ -73,6 +72,7 @@ func (any *stringAny) ToInt64() int64 { flag = -1 } + endPos := startPos for i := startPos; i < len(any.val); i++ { if any.val[i] >= '0' && any.val[i] <= '9' { endPos = i + 1 @@ -98,7 +98,6 @@ func (any *stringAny) ToUint64() uint64 { } startPos := 0 - endPos := 0 if any.val[0] == '-' { return 0 @@ -107,6 +106,7 @@ func (any *stringAny) ToUint64() uint64 { startPos = 1 } + endPos := startPos for i := startPos; i < len(any.val); i++ { if any.val[i] >= '0' && any.val[i] <= '9' { endPos = i + 1 |