int64_t on 64-bit machines better expresses the intent than ptrdiff_t. This is also more consistent with what is done in Fortran.