Fix a C# compiler error in the runtime test suite.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 26 Jul 2013 14:23:51 +0000 (16:23 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 26 Jul 2013 14:23:51 +0000 (16:23 +0200)
mono/tests/runtime-invoke.cs

index 816978b7c8fb29f3b8b067ee9a7bdac8ad55a538..624feae80cd7822e0dfaddd6ae60013655f43385 100644 (file)
@@ -240,7 +240,7 @@ class Tests
                int[,,] arr = new int [10, 10, 10];
                arr [0, 1, 2] = 42;
                var gm = arr.GetType ().GetMethod ("Get");
-               int i = gm.Invoke (arr, new object [] { 0, 1, 2 });
+               int i = (int) gm.Invoke (arr, new object [] { 0, 1, 2 });
                if (i != 42)
                        return 1;
                var sm = arr.GetType ().GetMethod ("Set");