Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2022-10-06 16:08:55 +0300
committerGitHub <noreply@github.com>2022-10-06 16:08:55 +0300
commit4cb02dbdffff3899a65f95f87c7a9afacffd78f9 (patch)
tree05e37c2b1cf6b492a29bbd96c7e85098d73adce9
parent0380dacce8feb9a96e42a1475a46da8255f08c12 (diff)
Fix incorrect version comparison in loader (#21553)
* Backport https://github.com/dotnet/runtime/pull/76665
-rw-r--r--mono/metadata/assembly.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mono/metadata/assembly.c b/mono/metadata/assembly.c
index 5a2ddad4e75..430a86b9952 100644
--- a/mono/metadata/assembly.c
+++ b/mono/metadata/assembly.c
@@ -749,7 +749,7 @@ mono_assembly_names_equal_flags (MonoAssemblyName *l, MonoAssemblyName *r, MonoA
* if \p r is a lower version than \p l, or zero if \p l and \p r are equal
* versions (comparing upto \p maxcomps components).
*
- * Components are \c major, \c minor, \c revision, and \c build. \p maxcomps 1 means just compare
+ * Components are \c major, \c minor, \c build, and \c revision. \p maxcomps 1 means just compare
* majors. 2 means majors then minors. etc.
*/
static int
@@ -765,9 +765,9 @@ assembly_names_compare_versions (MonoAssemblyName *l, MonoAssemblyName *r, int m
++i;
CMP (minor);
++i;
- CMP (revision);
- ++i;
CMP (build);
+ ++i;
+ CMP (revision);
#undef CMP
return 0;
}