Change long constant to hex, avoid casting int to void pointer