Fixing pointer address to avoid compiler warnings