/* nonbondedOnGpu might be false e.g. because this simulation uses
* the group scheme, or is a rerun with energy groups. */
- ngpu = (nonbondedOnGpu ? static_cast<int>(gpuIdsToUse.size()) : 0);
+ ngpu = (nonbondedOnGpu ? gmx::ssize(gpuIdsToUse) : 0);
if (inputrec->cutoff_scheme == ecutsGROUP)
{