toparity: typo in pretty print

* spot/twaalgos/toparity.cc: Fix pretty print.
This commit is contained in:
Alexandre Duret-Lutz 2019-06-18 16:26:04 +02:00
parent 8c13d7209e
commit a8e47d0bd2

View file

@ -1,5 +1,5 @@
// -*- coding: utf-8 -*-
// Copyright (C) 2018 Laboratoire de Recherche et Développement
// Copyright (C) 2018, 2019 Laboratoire de Recherche et Développement
// de l'Epita.
//
// This file is part of Spot, a model checking library.
@ -53,11 +53,13 @@ namespace spot
{
std::stringstream s;
s << state << " [";
for (unsigned i = 0; i != perm.size(); ++i)
unsigned ps = perm.size();
for (unsigned i = 0; i < ps; ++i)
{
s << perm[i] << '@' << count[i];
if (i < perm.size() - 1)
if (i > 0)
s << ", ";
unsigned p = perm[i];
s << p << '@' << count[p];
}
s << ']';