Skip to content
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

GAP: fix definition of 'Int' #35701

Merged
merged 2 commits into from
Jun 3, 2023
Merged

Conversation

fingolfin
Copy link
Contributor

The GAP Int type, like UInt, has the size of a machine pointer (at least
on the usual desktop system architectures), not a machine int. I.e. on a
typical 64bit OS it is a 64bit integer, not a 32bit integer. This often
makes no difference on little endian systems but can have disastrous
consequences for large values or on big endian systems.

Also fix a copy&paste mistake in the make_gap_integer argument name.

The GAP Int type, like UInt, has the size of a machine pointer (at least
on the usual desktop system architectures), not a machine int. I.e. on a
typical 64bit OS it is a 64bit integer, not a 32bit integer. This often
makes no difference on little endian systems but can have disastrous
consequences for large values or on big endian systems.

Also fix a copy&paste mistake in the `make_gap_integer` argument name.
@fchapoton
Copy link
Contributor

error in compilation:

sage/libs/gap/gap_includes.pxd:16:13: 'intptr_t' is not a type identifier

add missing import
@github-actions
Copy link

github-actions bot commented Jun 2, 2023

Documentation preview for this PR (built with commit db93a1a) is ready! 🎉

Copy link
Contributor

@fchapoton fchapoton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, let it be. Thanks for improving the interaction between Gap and Sage !

@vbraun vbraun merged commit e9415d4 into sagemath:develop Jun 3, 2023
@mkoeppe mkoeppe added this to the sage-10.1 milestone Jun 3, 2023
@fingolfin fingolfin deleted the mh/gap-Int-def branch June 4, 2023 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants