OK, compare to (size_t)-1 here, too '== (size_t )-1' .