clang-tidy complains about comparison of int and gmx::index,
since they are of different type.
gmx_bool first_set = FALSE;
/* histogram data: */
std::vector<int> hist;
- double dx = 0;
- double minval = 0;
- int i;
+ double dx = 0;
+ double minval = 0;
lambda_data_t* bl_head = sd->lb;
printf("\nWriting histogram to %s\n", filename);
sample_coll_make_hist(sc, &hist, &dx, &minval, nbin_default);
- for (i = 0; i < gmx::ssize(hist); i++)
+ for (gmx::index i = 0; i < gmx::ssize(hist); i++)
{
double xmin = i * dx + minval;
double xmax = (i + 1) * dx + minval;