Use size_t consistently, as we dropped fmin()