void
gmx_ana_indexgrps_print(gmx::TextWriter *writer, gmx_ana_indexgrps_t *g, int maxn)
{
- for (int i = 0; i < gmx::ssize(g->g); ++i)
+ for (gmx::index i = 0; i < gmx::ssize(g->g); ++i)
{
- writer->writeString(gmx::formatString(" Group %2d \"%s\" ",
+ writer->writeString(gmx::formatString(" Group %2zd \"%s\" ",
i, g->names[i].c_str()));
gmx_ana_index_dump(writer, &g->g[i], maxn);
}
while (i < g->isize)
{
/* Find the block that begins with the first unmatched atom */
- while (bi < b->numBlocks() && b->block(bi).begin() != g->index[i])
+ while (bi < b->numBlocks() && *b->block(bi).begin() != g->index[i])
{
++bi;
}
return false;
}
/* Check that the block matches the index */
- for (j = b->block(bi).begin(); j < b->block(bi).end(); ++j, ++i)
+ for (j = *b->block(bi).begin(); j < *b->block(bi).end(); ++j, ++i)
{
if (g->index[i] != j)
{