Merge branch 'master' of https://github.com/kaitai-io/kaitai_struct_csharp_runtime
This commit is contained in:
commit
d8d5e251ad
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue