[runtime] Fixed index comparison typo in class.c
authorAlexander Kyte <alexander.kyte@xamarin.com>
Wed, 1 Apr 2015 15:45:11 +0000 (11:45 -0400)
committerAlexander Kyte <alexander.kyte@xamarin.com>
Wed, 1 Apr 2015 15:45:11 +0000 (11:45 -0400)
mono/metadata/class.c

index 7feb4dd587ba567946dbbea9e3291e379d42500e..4148bec95083759ff96f247783820d91be3ccdb6 100644 (file)
@@ -3290,7 +3290,7 @@ static int
 find_interface_offset (int num_ifaces, MonoClass **interfaces_full, int *interface_offsets_full, MonoClass *ic)
 {
        int i = find_interface (num_ifaces, interfaces_full, ic);
-       if (ic >= 0)
+       if (i >= 0)
                return interface_offsets_full [i];
        return -1;
 }