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

Make x11iraf ready for 64 bit #2

Merged
merged 7 commits into from
Jul 3, 2018

Conversation

olebole
Copy link
Member

@olebole olebole commented Jun 6, 2018

This is partially compiled from a patch found on daisukes blog.

This will avoid the conversion pointer -> int -> pointer which is not lossless
on 64 bit.
The original code assumed that the "long" size is 4 bytes. On 64 bit machines,
this is wrong; so we replace the unsigned longs with uint32_t.
`main.c` uses the function `ptsname()` which is declared in `stdlib.h`
as `char *` only if this is defined. Otherwise, the return value
defaults to `int`, which will not correctly convert to a pointer on 64
bit archs.
The declaration is in `stdlib.h`.
@olebole olebole changed the title WIP: Make x11iraf ready for 64 bit Make x11iraf ready for 64 bit Jun 11, 2018
@olebole olebole merged commit 0d264ea into iraf-community:master Jul 3, 2018
@olebole olebole deleted the 64-bit-fixes branch July 3, 2018 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant