From 4c7e22d76dfd0d75d580d14b216ddb06a9630b22 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 29 Sep 2016 21:43:07 +0100 Subject: Return the number of components processed this run, not the lifetime total --- slicer/tool/parser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) : -- cgit v1.2.3