mirror of
https://github.com/json-iterator/go.git
synced 2024-11-27 08:30:57 +02:00
6821bec9fa
This commit fixes bug in Iterator.assertInteger method if the next conditions are met: - Iterator reads data from `io.Reader`, - expected value is `0` (zero) - `Iterator.tail == Iterator.head + 1` - `Iterator.tail < len(Iterator.buf)` - value in the buffer after `Iterator.tail` is presented from the previous read and has '.' character. Typical error which user cal see is: - assertInteger: can not decode float as int, error found in #X byte of ... Regression test added for checking the correct behaviour. Fixes #476 |
||
---|---|---|
.. | ||
jsoniter_array_test.go | ||
jsoniter_bool_test.go | ||
jsoniter_float_test.go | ||
jsoniter_int_test.go | ||
jsoniter_interface_test.go | ||
jsoniter_iterator_test.go | ||
jsoniter_map_test.go | ||
jsoniter_nested_test.go | ||
jsoniter_null_test.go | ||
jsoniter_object_test.go | ||
jsoniter_raw_message_test.go |