Fixed warning comparing int to size_t.