Skip to content

Commit 7cd0b7f

Browse files
Fix incorrect version comparison in loader (#21554)
* Backport dotnet/runtime#76665 Co-authored-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
1 parent a96bde9 commit 7cd0b7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mono/metadata/assembly.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ mono_assembly_names_equal_flags (MonoAssemblyName *l, MonoAssemblyName *r, MonoA
731731
* if \p r is a lower version than \p l, or zero if \p l and \p r are equal
732732
* versions (comparing upto \p maxcomps components).
733733
*
734-
* Components are \c major, \c minor, \c revision, and \c build. \p maxcomps 1 means just compare
734+
* Components are \c major, \c minor, \c build, and \c revision. \p maxcomps 1 means just compare
735735
* majors. 2 means majors then minors. etc.
736736
*/
737737
static int
@@ -747,9 +747,9 @@ assembly_names_compare_versions (MonoAssemblyName *l, MonoAssemblyName *r, int m
747747
++i;
748748
CMP (minor);
749749
++i;
750-
CMP (revision);
751-
++i;
752750
CMP (build);
751+
++i;
752+
CMP (revision);
753753
#undef CMP
754754
return 0;
755755
}

0 commit comments

Comments
 (0)