fix typo, "j-j"
authorkloun <andrey0bolkonsky@gmail.com>
Thu, 22 Sep 2016 21:24:37 +0000 (00:24 +0300)
committerGitHub <noreply@github.com>
Thu, 22 Sep 2016 21:24:37 +0000 (00:24 +0300)
mcs/mcs/ecore.cs

index edc860eca83b595e90b61975654147dbd691c4e9..2077f26bf2cf99d835fed105bbf4503bfeeae1d5 100644 (file)
@@ -4784,7 +4784,7 @@ namespace Mono.CSharp {
                                // is no better expression conversion
                                //
                                if (candidate_pd.Count < best_pd.Count) {
-                                       if (!candidate_params && !candidate_pd.FixedParameters [j - j].HasDefaultValue) {
+                                       if (!candidate_params && !candidate_pd.FixedParameters [j - 1].HasDefaultValue) {
                                                return true;
                                        }
                                } else if (candidate_pd.Count == best_pd.Count) {