From 24e0ad6ea6fd37bc20b7cc24bc4cf692705c5252 Mon Sep 17 00:00:00 2001 From: sakno Date: Wed, 4 Dec 2024 17:59:20 +0200 Subject: [PATCH] Fixed regression --- src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);