Use long instead of int to hold pointer values.