diff --git a/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs b/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs index cf51f294b..e78c6c257 100644 --- a/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs +++ b/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs @@ -4,10 +4,10 @@ namespace DotNext.Buffers.Binary; [StructLayout(LayoutKind.Auto)] -internal struct SevenBitEncodedInt32Reader : IBufferReader, ISupplier +internal struct SevenBitEncodedInt32Reader() : IBufferReader, ISupplier { private SevenBitEncodedInteger decoder; - private bool incompleted; + private bool incompleted = true; readonly int IBufferReader.RemainingBytes => Unsafe.BitCast(incompleted);