summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shepanski <michael@codesynthesis.com>2014-10-13 11:23:07 +0200
committerMichael Shepanski <michael@codesynthesis.com>2014-10-13 11:23:07 +0200
commitb86121664e0841b05ab6a597755a37fe110aedbc (patch)
treed28e971c134a41dfa1f044f844aa1b1039d6bf6c
parent6c3e61edcfaae6f35f7f5cacceb806d351c08241 (diff)
Get rid of GCC warning
-rw-r--r--cli/semantics/unit.txx4
1 files changed, 2 insertions, 2 deletions
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<scope*> (&ip.first->named ()))
+ if ((s = dynamic_cast<scope*> (&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<scope*> (&ip.first->named ()))
+ if ((s = dynamic_cast<scope*> (&ip.first->named ())))
break;
if (s == 0)