-
Notifications
You must be signed in to change notification settings - Fork 74.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for Big Endian in decode_raw_op_test #6689
Adding support for Big Endian in decode_raw_op_test #6689
Conversation
Can one of the admins verify this patch? |
Decode_raw_op test fails on big endian with an error "Unimplemented support for little_endian=true". |
I took a quick look at this PR and my only concern is that there doesn't seem to be any handling of the little_endian_ attribute in the OP code. What if little_endian_ is false (indicating that the data is little endian) but the system is different (say big endian). I think that case isn't perhaps handled. If the type of the data and system match then I think this code should do the job. Adding Andrew as well. |
@rohan100jain @drpngx Other solution we could think is to add check for little endian platform.
|
Patch look strange, there's a sizeof = 1 that's not used because of the if conditional? |
@drpngx
With our PR, we tried to remove the above assert assuming that type of data and the system match. Can you think of better way to handle the above scenario? |
The test basically says that it's not implemented. Maybe it's stale. Does it pass all tests? |
@drpngx All tests are passing at our end with above mentioned patch. |
Jenkins, test this please. |
Not sure if @aselle has more context. The test was written to mean that anything other than little endian doesn't work, but I guess if it works for you, then I am for removing the check altogether, if it also has a reasonable chance of working with middle endian. |
Sorry for the delay. Thinking about this, it's the right thing to delete the test since you have tested it and it's obsolete. The case we don't cover is middle endian but I don't think we need to worry about this now. |
Adding support for Big Endian in decode_raw_op_test