diff --git a/CSharp-OpenBMCLAPI/Modules/AvroParser.cs b/CSharp-OpenBMCLAPI/Modules/AvroParser.cs index 22ead67..80d1e25 100644 --- a/CSharp-OpenBMCLAPI/Modules/AvroParser.cs +++ b/CSharp-OpenBMCLAPI/Modules/AvroParser.cs @@ -41,8 +41,8 @@ public List Parse() public long ReadLong() { - int b = this._stream.ReadByte(); - int n = b & 0x7F; + long b = this._stream.ReadByte(); + long n = b & 0x7F; int shift = 7; while ((b & 0x80) != 0) {