Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix build on big-endian machines. #81
Conversation
|
Thanks for that! We will take a good look. What hardware platform are you on? |
|
This is on Fedora s390x. Unfortunately, the build logs are gone from that attempt, but the result was:
|
|
I just merged one smaller pending changeset, I may have one more -- I think I can commit back to your branch but I am not sure I force-push after rebasing. I may try, if it fails maybe I'll have to ask you to rebase. Hope that's ok. |
|
I can rebase, but I think the option should be checked that you could do it. |
|
Ok, lemme clean up once more and merge one more and then I can try. We really appreciate your PR! @lsilvest wants to look into / think through one more aspect related to bit patterns and NAs. But I think this will go in and I am aiming for a new release in a few days. |
|
@QuLogic : I was a bit worried with the way we defined NA_nanoival_. I think endianness will not matter for There should be some tests for the NAs (not sure if your changes passed Also, would you be able to test Many thanks for all this! |
|
Before:
On this branch:
Actually, I noticed one more constructor's reordering warnings, so I pushed an update that should fix that, and rebased. |
As the bytes are in the reverse order, the bitfields need to be reversed in order to produce the same special numbers.
|
@QuLogic You were correct, and I was too pessimistic. The toggle does indeed allow me to force-push back, so I rebased your PR against our main branch having merged two pending sets of changes. @lsilvest How do you feel about NA etc now? Ok to merge this and release an updated 0.3.2 to CRAN? We would have a few more days for tests so it doesn't have to happen to day or tomorrow... |
|
Yes, absolutely, good to merge! |
|
@QuLogic And just to double-check, and to make sure I didn;t inadvertendly trample over anythin with the force push: all your changes are still there, right? (Behaves fine on r-release and r-devel for me, but that is on x86_64.) |
|
Yes, I did not re-compile it again, but looking at the diffs it appears the same still. |
|
Thanks--I was a little worried I might not have pulled a second time before pushing. PS But come to think to about it I did only create my local branch off your remote branch after your 2nd commit so I was overly worried. We should be just fine. Test builds on Windows now finally see the (needed and checked for) updated RcppCCTZ so we're all set now). |
|
It's all ready and tests fine but the CRAN Windows machine with r-devel still has RcppCCTZ so I have to wait on that. |
|
This is now on CRAN -- thanks again! |
As the bytes are in the reverse order, the bitfields need to be reversed in order to produce the same special numbers.
Alternatively, the
IVAL_MAX,IVAL_MIN,IVAL_NAcould be changed, but I think it looks better this way in case you print out the values, as they seem more obviously special.