summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/tool/parser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/slicer/tool/parser.cpp b/slicer/tool/parser.cpp
index c541ec1..2642292 100644
--- a/slicer/tool/parser.cpp
+++ b/slicer/tool/parser.cpp
@@ -622,11 +622,13 @@ namespace Slicer {
throw CompilerError("unit parse failed");
}
+ unsigned int initial = Components();
+
u->visit(this, false);
u->destroy();
- return Components();
+ return Components() - initial;
}
Slicer::ConversionSpec::ConversionSpec(const Slicer::Args & s) :