1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00

Fixed an internal error that was triggered by an attempt to move an empty list

of instructions in the code segment (Oliver Schmidt).
                       


git-svn-id: svn://svn.cc65.org/cc65/trunk@5419 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2012-01-21 21:35:49 +00:00
parent 90f346ab47
commit 44e7225ce6

View File

@ -655,6 +655,11 @@ void CS_MoveEntries (CodeSeg* S, unsigned Start, unsigned Count, unsigned NewPos
* current code end)
*/
{
/* Transparently handle an empty range */
if (Count == 0) {
return;
}
/* If NewPos is at the end of the code segment, move any labels from the
* label pool to the first instruction of the moved range.
*/