2002-08-20 Miguel de Icaza <miguel@ximian.com>
authorMiguel de Icaza <miguel@gnome.org>
Wed, 21 Aug 2002 02:28:30 +0000 (02:28 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 21 Aug 2002 02:28:30 +0000 (02:28 -0000)
* 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

mcs/jay/ChangeLog
mcs/jay/skeleton.cs

index 5cbbfb765260dced4975fc0e73548d6e995259a6..a32b32b76e6ddd2640570aaddd60cc1affbe57f1 100755 (executable)
@@ -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
index a2ed00734f7816e9f1ff3b5e61d5071962286e4a..82d8f63e3d662f3ee77ba01ccc953381b7dc9d28 100644 (file)
@@ -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;