Fix compilation by using std::ptrdiff_t instead of ptrdiff_t

Signed-off-by: lledey <lledey@gmail.com>