diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-30 12:31:42 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-30 14:41:30 -0700 |
commit | c24b34a47359ffb012b85e329f829b64d9d27215 (patch) | |
tree | 0a7acb802d5c9e3cf3ccde658b07f1034f680f52 /compat | |
parent | 8b7c8d2f87f9c4d924d070926fb5ab9860d00c61 (diff) |
decode: Fix DecodeTypeError offsets
Diffstat (limited to 'compat')
-rw-r--r-- | compat/json/compat.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/json/compat.go b/compat/json/compat.go index 0c9e800..48d708b 100644 --- a/compat/json/compat.go +++ b/compat/json/compat.go @@ -183,7 +183,7 @@ func convertDecodeError(err error) error { default: err = &SyntaxError{ msg: terr.Err.Error(), - Offset: terr.Offset, + Offset: terr.Offset + 1, } } case *lowmemjson.DecodeTypeError: |