You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just run into this issue as well, but when experimenting with the C++ backend. I can't seem to find any information on the type inference algorithm for Kaitai structs, so I am not sure if this is a bug in the compiler or the spec, but fixing it as suggested above seems reasonable to me.
The current status, where the spec looks simple, but when you try to parse some large numbers you get the wrong result is pretty unfortunate.
Hi.
Source file:
common/vlq_base128_le.ksy
Look in screenshot below, it is source file compiled for C#.
Since by default csharp uses Int32 type, shifts by '35', '42', '49' computes incorrectly.
Possible workaround to cast values to
u8
invlq_base128_le.ksy
:The text was updated successfully, but these errors were encountered: