Commit cc761870 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

kripkegraph: fix g++ warning

Test the output of down_cast before using it.  This
used to generate a warning when crosscompiling
for mingw with g+++ 6.1.1

* spot/kripke/kripkegraph.hh: Here.
parent ca6435d8
......@@ -245,7 +245,9 @@ namespace spot
/// \brief Get the condition on the state
virtual bdd state_condition(const state* s) const override
{
return down_cast<const kripke_graph_state*>(s)->cond();
auto gs = down_cast<const kripke_graph_state*>(s);
SPOT_ASSERT(gs);
return gs->cond();
}
edge_storage_t& edge_storage(unsigned t)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment