Skip to content

Commit

Permalink
minor performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbodner committed Aug 2, 2020
1 parent f53ed69 commit 18a987a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/main.go
Expand Up @@ -33,7 +33,7 @@ func BytesFromData(d Data) [16]byte {
out[3] = byte(d.Value >> 24)
out[2] = byte(d.Value >> 16)
out[1] = byte(d.Value >> 8)
out[0] = byte(d.Value & 255)
out[0] = byte(d.Value)
copy(out[4:14], d.Label[:])
if d.Active {
out[14] = 1
Expand Down

0 comments on commit 18a987a

Please sign in to comment.