1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2025-07-26 11:24:38 -04:00

bit muncher: correct comment on GetBit

This commit is contained in:
gucio321 2021-05-15 11:34:05 +02:00
parent a336c7da15
commit 3e79c295e2

View File

@ -62,7 +62,7 @@ func (v *BitMuncher) SetBitsRead(n int) {
v.bitsRead = n
}
// GetBit reads a bit and returns it as uint32
// GetBit reads a bit and returns it as bool
func (v *BitMuncher) GetBit() bool {
result := v.data[v.offset/byteLen] >> uint(v.offset%byteLen) & oneBit
v.offset++