From cd5ac041f24a9c3a13ea80283c093bf2793f9eae Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Wed, 30 Oct 2024 12:07:55 +0100 Subject: [PATCH] hierarchy: improve error message * spot/tl/hierarchy.cc (mp_class): Fix type of o so that it is displayed as an character in error messages. --- spot/tl/hierarchy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spot/tl/hierarchy.cc b/spot/tl/hierarchy.cc index 3ab6f5930..5112c9c12 100644 --- a/spot/tl/hierarchy.cc +++ b/spot/tl/hierarchy.cc @@ -312,7 +312,7 @@ namespace spot bool wide = false; if (opt) for (;;) - switch (int o = *opt++) + switch (char o = *opt++) { case 'v': verbose = true;