Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne
Created July 14, 2011 21:27
Show Gist options
  • Save rolfbjarne/1083503 to your computer and use it in GitHub Desktop.
Save rolfbjarne/1083503 to your computer and use it in GitHub Desktop.
diff --git a/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.vb b/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.vb
index a2416e2..cdeff0b 100644
--- a/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.vb
+++ b/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.vb
@@ -64,8 +64,8 @@ Namespace Microsoft.VisualBasic.CompilerServices
Return array.GetLength(dimension)
End Function
- Friend Shared Sub Array_Copy(ByVal sourceArray As System.Array, ByVal sourceIndex As Integer, ByVal destinationArray As System.Array, ByVal destinationIndex As Integer, ByVal length As Integer)
- System.Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length)
+ Friend Shared Sub Array_Copy(ByVal sourceArray As System.Array, ByVal sourceIndex As Long, ByVal destinationArray As System.Array, ByVal destinationIndex As Long, ByVal length As Long)
+ System.Array.Copy(sourceArray, CInt(sourceIndex), destinationArray, CInt(destinationIndex), CInt(length))
End Sub
#End If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment