Skip to content

Commit

Permalink
damn equal, hopefully optimizer move that small structures using one …
Browse files Browse the repository at this point in the history
…instruction
  • Loading branch information
Jan Klaban committed Dec 6, 2024
1 parent 1849aee commit 929b5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlmsal/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (o *DlmsObis) Bytes() []byte {
return []byte{o.A, o.B, o.C, o.D, o.E, o.F}
}

func (o *DlmsObis) EqualTo(o2 *DlmsObis) bool {
func (o *DlmsObis) EqualTo(o2 DlmsObis) bool {
return o.A == o2.A && o.B == o2.B && o.C == o2.C && o.D == o2.D && o.E == o2.E && o.F == o2.F
}

Expand Down

0 comments on commit 929b5f4

Please sign in to comment.