Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/jay
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2002-08-21 06:28:30 +0400
committerMiguel de Icaza <miguel@gnome.org>2002-08-21 06:28:30 +0400
commite5cfbdb163862c3a9b0aa5364788730c37ba3b4a (patch)
treea4ad8a362f7b9f1b3b57fe2391567869695d8757 /mcs/jay
parent4f6bd9f829df946ffa9147007dbf35c9f96d43f7 (diff)
2002-08-20 Miguel de Icaza <miguel@ximian.com>
* skeleton.cs: Fix the code that expanded the arrays dynamically, it was broken, and instead was copying 0 elements. svn path=/trunk/mcs/; revision=6838
Diffstat (limited to 'mcs/jay')
-rwxr-xr-xmcs/jay/ChangeLog5
-rw-r--r--mcs/jay/skeleton.cs4
2 files changed, 7 insertions, 2 deletions
diff --git a/mcs/jay/ChangeLog b/mcs/jay/ChangeLog
index 5cbbfb76526..a32b32b76e6 100755
--- a/mcs/jay/ChangeLog
+++ b/mcs/jay/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-20 Miguel de Icaza <miguel@ximian.com>
+
+ * skeleton.cs: Fix the code that expanded the arrays dynamically,
+ it was broken, and instead was copying 0 elements.
+
2002-07-10 Alp Toker <alp@atoker.com>
* main.c: mktemp() is deprecated with gcc 3.1.1, use mkstemp() instead
diff --git a/mcs/jay/skeleton.cs b/mcs/jay/skeleton.cs
index a2ed00734f7..82d8f63e3d6 100644
--- a/mcs/jay/skeleton.cs
+++ b/mcs/jay/skeleton.cs
@@ -135,10 +135,10 @@ t this.debug = (yydebug.yyDebug)yyd;
. for (;; ++ yyTop) {
. if (yyTop >= yyStates.Length) { // dynamically increase
. int[] i = new int[yyStates.Length+yyMax];
-. System.Array.Copy(yyStates, i, 0);
+. yyStates.CopyTo (i, 0);
. yyStates = i;
. Object[] o = new Object[yyVals.Length+yyMax];
-. System.Array.Copy(yyVals, o, 0);
+. yyVals.CopyTo (o, 0);
. yyVals = o;
. }
. yyStates[yyTop] = yyState;