1
0
mirror of https://github.com/json-iterator/go.git synced 2025-07-03 23:30:41 +02:00

fix #195 when decode float as int, report it clearly

This commit is contained in:
Tao Wen
2017-11-15 23:25:12 +08:00
parent 3c0e5762c4
commit 9f088cbcc4
4 changed files with 19 additions and 3 deletions

View File

@ -168,7 +168,7 @@ func (iter *Iterator) isObjectEnd() bool {
if c == '}' {
return true
}
iter.ReportError("isObjectEnd", "object ended prematurely, unexpected char " + string([]byte{c}))
iter.ReportError("isObjectEnd", "object ended prematurely, unexpected char "+string([]byte{c}))
return true
}