1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-05 17:57:17 -05:00

fixed lint errors in stream_writter

This commit is contained in:
gucio321 2021-02-10 19:49:21 +01:00 committed by M. Sz
parent 004787597e
commit 025a172500

View File

@ -58,6 +58,7 @@ func (v *StreamWriter) PushBits(b byte, bits int) {
}
val := b
for i := 0; i < bits; i++ {
v.PushBit(val&1 == 1)
val >>= 1
@ -71,6 +72,7 @@ func (v *StreamWriter) PushBits16(b uint16, bits int) {
}
val := b
for i := 0; i < bits; i++ {
v.PushBit(val&1 == 1)
val >>= 1
@ -84,6 +86,7 @@ func (v *StreamWriter) PushBits32(b uint32, bits int) {
}
val := b
for i := 0; i < bits; i++ {
v.PushBit(val&1 == 1)
val >>= 1