Skip to content

Commit

Permalink
- Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiphil committed Oct 20, 2024
1 parent 02f81b0 commit 43f326b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected static void CopyCompound(Transform transform, Context context, Operand
var srcReg = transform.VirtualRegisters.AllocateNativeInteger();
var dstReg = transform.VirtualRegisters.AllocateNativeInteger();

context.AppendInstruction(transform.AddInstruction, srcReg, sourceBase, source);
context.SetInstruction(transform.AddInstruction, srcReg, sourceBase, source);
context.AppendInstruction(transform.AddInstruction, dstReg, destinationBase, destination);

var tmp = transform.VirtualRegisters.AllocateNativeInteger();
Expand Down
3 changes: 2 additions & 1 deletion Source/Mosa.Korlib/System.Collections.Generic/List.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ public void Insert(int index, T item)
_size++;
for (int i = index; i < _size; i++)
{
_items[i] = _items[i + 1];
//_items[i] = _items[i + 1];
_items[i + 1] = _items[i];
}

_items[index] = item;
Expand Down

0 comments on commit 43f326b

Please sign in to comment.