Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Feb 1, 2024
1 parent 0aa21ac commit ab9ed87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/encoder/alg/spec_compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,16 @@ func F64toa(buf []byte, v float64) ([]byte) {
return strconv.AppendFloat(buf, float64(v), 'g', -1, 64)
}

func F32toa(buf []byte, v float64) ([]byte) {
func F32toa(buf []byte, v float32) ([]byte) {
return strconv.AppendFloat(buf, float64(v), 'g', -1, 32)
}

func I64toa(buf []byte, v int64) ([]byte) {
return buf = strconv.AppendInt(buf, int64(v), 10)
return strconv.AppendInt(buf, int64(v), 10)
}

func U64toa(buf []byte, v uint64) ([]byte) {
return buf = strconv.AppendUint(buf, v, 10)
return strconv.AppendUint(buf, v, 10)
}


0 comments on commit ab9ed87

Please sign in to comment.