You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Maddr is only using in mmalloc.c. Unless there is some deeper perpose behind Maddr that I am missing we seem to have "reinvented the wheel" and we could simplify the code base as well as removing these compiler warnings by using uintptr_t here.
The text was updated successfully, but these errors were encountered:
Problem
warning: cast from pointer to integer of different size
.void *
(32 bit) toMaddr
(64 bit).Solutions
uintptr_t
(https://en.cppreference.com/w/c/types/integer).Maddr
is only using inmmalloc.c
. Unless there is some deeper perpose behindMaddr
that I am missing we seem to have "reinvented the wheel" and we could simplify the code base as well as removing these compiler warnings by usinguintptr_t
here.The text was updated successfully, but these errors were encountered: