Skip to content

Commit ae5a66d

Browse files
packets: remove unnecessary conversion from float32 to float32 (#581)
1 parent af474b6 commit ae5a66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packets.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ func (rows *binaryRows) readRow(dest []driver.Value) error {
11881188
continue
11891189

11901190
case fieldTypeFloat:
1191-
dest[i] = float32(math.Float32frombits(binary.LittleEndian.Uint32(data[pos : pos+4])))
1191+
dest[i] = math.Float32frombits(binary.LittleEndian.Uint32(data[pos : pos+4]))
11921192
pos += 4
11931193
continue
11941194

0 commit comments

Comments
 (0)