Matt Bolt пре 3 месеци
родитељ
комит
b570f8a261
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      core/pkg/util/bufferhelper.go

+ 2 - 2
core/pkg/util/bufferhelper.go

@@ -165,7 +165,7 @@ func readFloat32(r *bytes.Buffer, data *float32) error {
 
 func readFloat64(r *bytes.Buffer, data *float64) error {
 	order := binary.LittleEndian
-	var b [4]byte
+	var b [8]byte
 
 	bs := b[:]
 	_, err := r.Read(bs)
@@ -335,7 +335,7 @@ func readBuffFloat32(r *bufio.Reader, data *float32) error {
 
 func readBuffFloat64(r *bufio.Reader, data *float64) error {
 	order := binary.LittleEndian
-	var b [4]byte
+	var b [8]byte
 
 	bs := b[:]
 	_, err := r.Read(bs)