Printing size_t as %zd instead of %d to suppress warning