diff --git a/include/mp/flat/constr_keeper.h b/include/mp/flat/constr_keeper.h index 1365df154..41b61c05f 100644 --- a/include/mp/flat/constr_keeper.h +++ b/include/mp/flat/constr_keeper.h @@ -928,7 +928,7 @@ class ConstraintKeeper final } /// Export constraint status. /// This is called in the end, - /// so printing the readbale form. + /// so printing the readable form. void ExportConStatus(int i_con, const Container& cnt, const std::vector* pvnam) { if (GetLogger()) { diff --git a/src/problem.cc b/src/problem.cc index 1ca59c64e..e4c17d72d 100644 --- a/src/problem.cc +++ b/src/problem.cc @@ -130,8 +130,7 @@ const std::string& BasicProblem::item_name( bool fbr = '['==stub[l-1]; names[k] = stub; names[k] += std::to_string(k-k_sub+1); - if (fbr) - names[k] += ']'; + names[k] += (fbr ? ']' : '_'); } }; if (n2>=0 && n2