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 have had to cross compile your code onto a processor that is big endian. This causes an issue in the yang_parse_file function, as the read function reads characters into an int, so the character is actully contained in the highest byte of the integer, and then you mask it away as well with an & 0xff.
I have resolved and patched it by getting the read function to read a char instead of an int.
The text was updated successfully, but these errors were encountered:
Hi,
Yes, I just changed the variable c in the yang_parse_file function to be a char instead of an int. It fixes the problem and am using that as my patch.
On 20 Aug 2020, at 14:53, Olof Hagsand <notifications@github.com> wrote:
Thanks for detecting. Do you have a proposed patch for that?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
I have had to cross compile your code onto a processor that is big endian. This causes an issue in the yang_parse_file function, as the read function reads characters into an int, so the character is actully contained in the highest byte of the integer, and then you mask it away as well with an & 0xff.
I have resolved and patched it by getting the read function to read a char instead of an int.
The text was updated successfully, but these errors were encountered: