nextLine has already been incremented. Pushing it onto the return stack incremented again skips a line of the install script.

This commit is contained in:
Steve Checkoway
2003-11-02 12:54:16 +00:00
parent 4b3730cfc5
commit ff6dda8f2a
+2 -2
View File
@@ -186,7 +186,7 @@ void Processor::ProcessLine(const CString& line, unsigned& nextLine)
mLabel = parts[1];
if (mLabels.find(mLabel) != mLabels.end())
{
mReturnStack.push(nextLine + 1);
mReturnStack.push(nextLine);
nextLine = mLabels[mLabel];
mLabel = "";
return;
@@ -209,7 +209,7 @@ void Processor::ProcessLine(const CString& line, unsigned& nextLine)
{
return;
}
mReturnStack.push(nextLine + 1);
mReturnStack.push(nextLine);
if (mLabels.find(mLabel) != mLabels.end())
{
nextLine = mLabels[mLabel];