Skip to content

warning: cast from pointer to integer of different size #88

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

Open
ZanyXDev opened this issue Mar 5, 2020 · 0 comments
Open

warning: cast from pointer to integer of different size #88

ZanyXDev opened this issue Mar 5, 2020 · 0 comments
Labels

Comments

@ZanyXDev
Copy link

ZanyXDev commented Mar 5, 2020

In the file src/int/i386-idt.c
lidt_pointer.base = (uint32_t)&idt_entries; generate warning
src/int/i386-idt.c:53:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
IMHO correct usage
intptr_t(optional) | signed integer type capable of holding a pointer(typedef)
warning-cast-to-from-pointer
lidt_pointer.base = (intptr_t)&idt_entries;

@lutoma lutoma added the bug label Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants