-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix missing-braces issue for Rcomplex #135
Fix missing-braces issue for Rcomplex #135
Conversation
No, not a fan of a preprocessor macro based approach, sorry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rejecting as using macros is step backwards. An inline function with preprocessor step for clang > whateverthreshold may work.
Sure! Made it a routine instead, PTAL. |
I'm taking the approach of branching on R version because that's where the actual |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Micro nags. We're getting there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, that's pretty much what I would have done and the check on the R version may actually be net better than what I had in my first attempt. We can live with this.
Can you please check why macOS is crying? |
Argh. Sorry. I can't tell why. Do they give you and GHA artifacts that would include 00install.out? I didn't see any but I might just lack permissions. Don't spend more than a few minutes on this, I'll try and figure out another way if it's causing you headache. |
We have to add a block such as towards the end of the file ci.yaml:
Otherwise I can try mac-builder later but I presume you have the requisite tar.gz handy? |
The earlier Mac issue was probably due to my sloppy copy-pasting, I had makeComplex(double *re, double *im)
// then later
makeComplex(re, im); // Should be &re, &im! Obviated the issue by just making copies (which I think we need to do and IINM is what the original code was doing). |
Co-authored-by: Michael Chirico <chiricom@google.com>
Closes #134. This approach avoids the need for old-vs-new preprocessor branching.