Change induction variable type for compatibility

The argument is a size_t, use %zu not %ld.