diff options
author | Miguel de Icaza <miguel@gnome.org> | 2002-08-21 06:28:30 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2002-08-21 06:28:30 +0400 |
commit | e5cfbdb163862c3a9b0aa5364788730c37ba3b4a (patch) | |
tree | a4ad8a362f7b9f1b3b57fe2391567869695d8757 /mcs/jay | |
parent | 4f6bd9f829df946ffa9147007dbf35c9f96d43f7 (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-x | mcs/jay/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/jay/skeleton.cs | 4 |
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; |