Skip to content

Commit f74703c

Browse files
authored
Avoid using constant; Fix #658 (#660)
1 parent b2958c0 commit f74703c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mono.Cecil/BaseAssemblyResolver.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ AssemblyDefinition GetAssemblyInNetGac (AssemblyNameReference reference, ReaderP
366366
var gacs = new [] { "GAC_MSIL", "GAC_32", "GAC_64", "GAC" };
367367
var prefixes = new [] { string.Empty, "v4.0_" };
368368

369-
for (int i = 0; i < 2; i++) {
369+
for (int i = 0; i < gac_paths.Count; i++) {
370370
for (int j = 0; j < gacs.Length; j++) {
371371
var gac = Path.Combine (gac_paths [i], gacs [j]);
372372
var file = GetAssemblyFile (reference, prefixes [i], gac);

0 commit comments

Comments
 (0)