summaryrefslogtreecommitdiffstats
path: root/cli/semantics/unit.txx
diff options
context:
space:
mode:
Diffstat (limited to 'cli/semantics/unit.txx')
-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)