Changed to use intptr_t instead of ptrdiff_t.