Skip to content

Commit

Permalink
fixed baseline serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
deneonet committed Jun 12, 2024
1 parent 582ec86 commit e17dc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/serializers/baseline/baseline.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func getBool(b []byte) bool {

func (b *BaselineSerializer) Marshal(o interface{}) ([]byte, error) {
a := o.(*goserbench.SmallStruct)
buf := make([]byte, 47)
buf := []byte{}
buf = binary.LittleEndian.AppendUint64(buf, uint64(a.BirthDay.UnixNano()))
buf = binary.LittleEndian.AppendUint64(buf, math.Float64bits(a.Money))
buf = binary.LittleEndian.AppendUint32(buf, uint32(a.Siblings))
Expand Down

0 comments on commit e17dc05

Please sign in to comment.