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:
parent
004787597e
commit
025a172500
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user