diff --git a/Sources/DataWithPointer.swift b/Sources/DataWithPointer.swift index 529bba6b..a259176c 100644 --- a/Sources/DataWithPointer.swift +++ b/Sources/DataWithPointer.swift @@ -88,6 +88,7 @@ class DataWithPointer { // MARK: Manipulations with index and bitShift func skipUntilNextByte() { + guard self.bitShift != 0 else { return } self.index += 1 self.bitShift = 0 }