Skip to content

Commit

Permalink
Fix AppendFloats64 first element as 32 (rs#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
DionisioRD authored Oct 27, 2020
1 parent e11d470 commit 9336c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/json/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (Encoder) AppendFloats64(dst []byte, vals []float64) []byte {
return append(dst, '[', ']')
}
dst = append(dst, '[')
dst = appendFloat(dst, vals[0], 32)
dst = appendFloat(dst, vals[0], 64)
if len(vals) > 1 {
for _, val := range vals[1:] {
dst = appendFloat(append(dst, ','), val, 64)
Expand Down

0 comments on commit 9336c4d

Please sign in to comment.