You should use `size_t` here, not `unsigned`.