intptr_t instead of int

Supporting 64 bit architecture.