This commit is contained in:
Mikhail Yakshin 2019-04-17 15:25:52 +01:00
commit d8d5e251ad
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ namespace Kaitai
byte[] buf = ReadBytes(bytesNeeded); byte[] buf = ReadBytes(bytesNeeded);
for (int i = 0; i < buf.Length; i++) for (int i = 0; i < buf.Length; i++)
{ {
ulong v = (ulong)(buf[i] << BitsLeft); ulong v = (ulong)((ulong)buf[i] << BitsLeft);
Bits |= v; Bits |= v;
BitsLeft += 8; BitsLeft += 8;
} }