Remove a dynamic_cast.

* src/tgbaalgos/ltl2tgba_fm.cc (translate_ratexp): Replace
a dynamic cast by a call to kind().
This commit is contained in:
Alexandre Duret-Lutz 2011-12-01 18:42:59 +01:00
parent 614810c0db
commit 775438422d

View file

@ -807,7 +807,7 @@ namespace spot
res_ |= label & tail_bdd;
}
if (dynamic_cast<constant*>(dest) == 0)
if (dest->kind() != formula::Constant)
{
// If the destination is not a constant, it
// means it can have successors. Fusion the