Fix comparison between int and size_t