Skip to content

Commit

Permalink
almost goto hehe
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Klaban committed Jun 12, 2024
1 parent 8e68f48 commit 198c573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlmsal/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ func decodeData(src io.Reader, tag dataTag, tmpbuffer *tmpbuffer) (data DlmsData
}
val := make([]bool, l)
off := uint(0)
E:
for i := uint(0); i < blen; i++ {
for j := uint(0); j < 8; j++ {
val[off] = (tmp[i] & (1 << (7 - j))) != 0
off++
if off >= l {
i = blen
break
break E
}
}
}
Expand Down

0 comments on commit 198c573

Please sign in to comment.