Changing mem address data type to long