remove a compiler warning by casting to ptrdiff_t