Merge pull request #8607 from a3d4/fix-nested-tuples

Fixed nested tuples on the right-hand side.
This commit is contained in:
chriseth
2020-04-08 12:29:52 +02:00
committed by GitHub
7 changed files with 108 additions and 3 deletions
+2 -2
View File
@@ -1108,12 +1108,12 @@ void CompilerUtils::convertType(
// Value shrank
for (unsigned j = targetSize; j < sourceSize; ++j)
{
moveToStackTop(depth - 1, 1);
moveToStackTop(depth + targetSize - sourceSize, 1);
m_context << Instruction::POP;
}
// Value grew
if (targetSize > sourceSize)
moveIntoStack(depth + targetSize - sourceSize - 1, targetSize - sourceSize);
moveIntoStack(depth - sourceSize, targetSize - sourceSize);
}
}
depth -= sourceSize;