From b86121664e0841b05ab6a597755a37fe110aedbc Mon Sep 17 00:00:00 2001 From: Michael Shepanski Date: Mon, 13 Oct 2014 11:23:07 +0200 Subject: Get rid of GCC warning --- cli/semantics/unit.txx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/semantics') diff --git a/cli/semantics/unit.txx b/cli/semantics/unit.txx index f884e18..6d70756 100644 --- a/cli/semantics/unit.txx +++ b/cli/semantics/unit.txx @@ -28,7 +28,7 @@ namespace semantics scope::names_iterator_pair ip (s->find (n)); for (s = 0; ip.first != ip.second; ++ip.first) - if (s = dynamic_cast (&ip.first->named ())) + if ((s = dynamic_cast (&ip.first->named ()))) break; if (s == 0) @@ -69,7 +69,7 @@ namespace semantics else { for (s = 0; ip.first != ip.second; ++ip.first) - if (s = dynamic_cast (&ip.first->named ())) + if ((s = dynamic_cast (&ip.first->named ()))) break; if (s == 0) -- cgit v1.1