-
Notifications
You must be signed in to change notification settings - Fork 47
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
Avoid using SIZEOF_VOID_P, remove unsused SYS_IS_CYGWIN32 #502
Avoid using SIZEOF_VOID_P, remove unsused SYS_IS_CYGWIN32 #502
Conversation
// The following macro is bitmap_decode_ctz_callpack from https://git.io/fho4p | ||
#ifdef DIGRAPHS_HAVE___BUILTIN_CTZLL | ||
#if SYS_IS_64_BIT && defined(DIGRAPHS_HAVE___BUILTIN_CTZLL) |
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.
I should point out that this check (and also the one it replaces) does not seem to fit the code it wraps 100%: I think what you really need to check is whether sizeof(unsigned long long) == 8
, and then use unsigned long long
instead of uin64_t
below (as uint64_t
may be long
, not long long
, which is technically a different type, even if it has the same size as long
). Anyway, it probably doesn't matter in practice on most systems, and I didn't want to make a semantic change.
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.
I see what you mean, I'd be happy to accept a PR that made this change, or to make this change myself.
This allows future GAP versions to drop SIZEOF_VOID_P (although 4.12 definitely will support it).
698f69f
to
3f5cce2
Compare
Those CI failures don't seem to be caused by this PR?
|
Thanks for the PR @fingolfin and the comment, yes the CI failure is surely unrelated to your PR. |
Thanks for the PR @fingolfin, much appreciated. I'm happy enough to merge this, and agree it doesn't seem to be the fault of this PR that the CI is failing. |
Looking at this a bit further, I think this is caused by the following line: in the |
@james-d-mitchell I really don't know the first thing about Docker, sorry. I think opening the issue that you did is your best bet. For now I'd be happy for us to merge PRs where the |
This allows future GAP versions to drop SIZEOF_VOID_P (although 4.12
definitely will support it).