lutoma / xelix

💻⚙ Xelix is a hobby Unix-like kernel with GNU userland for x86
https://xelix.org
GNU General Public License v3.0
61 stars 6 forks source link

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

Open ZanyXDev opened 4 years ago

ZanyXDev commented 4 years ago

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;