Created
July 14, 2011 21:27
-
-
Save rolfbjarne/1083503 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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