fix incorrect ptrdiff_t type on mips