Replaces another use of ptrdiff_t.