From 9d94b9a8573bee8ab8e64aea8d9e1b5502af4221 Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Sun, 18 Jul 2021 13:38:47 +0300 Subject: [PATCH] Fixed utils --- util/bits.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/bits.go b/util/bits.go index f20feaf..e0f7030 100644 --- a/util/bits.go +++ b/util/bits.go @@ -3,7 +3,7 @@ package util // Tells if bit is set in given byte, // if bitN <= 0 - always returns false func GetBit(b byte, bitN int) bool { - if bitN == 0 { + if bitN <= 0 { return false } return b&byte(1<