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

Cast warning while compiling src/task.c on 32-bit platform #7955

Closed
rickhg12hs opened this issue Aug 11, 2014 · 1 comment
Closed

Cast warning while compiling src/task.c on 32-bit platform #7955

rickhg12hs opened this issue Aug 11, 2014 · 1 comment

Comments

@rickhg12hs
Copy link
Contributor

I don't know if this is a problem or exactly how to test if it's a problem. Can this warning be ignored?

    CC src/task.o
task.c: In function ‘jl_lookup_code_address’:
task.c:661:66: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         jl_tupleset(r, 4, jl_box_long((int64_t)ip));
                                                                  ^
@vtjnash
Copy link
Sponsor Member

vtjnash commented Aug 11, 2014

Supposedly the result of this cast is undefined (iirc) and the pointer must be first cast to a intptr_t first. It would also silence the warning.

JeffBezanson added a commit that referenced this issue Aug 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants