Skip to content

Conversation

@gius
Copy link
Contributor

@gius gius commented Jun 3, 2014

When SemanticVersion.CompareTo() function cannot decide if the other SemanticVersion from parameter should go before or after the current instance, it returns -1. This is wrong as the function should return 0 when both instances should be considered as equal.
Before the bug fix, it is also impossible to use OrderBy on enumeration of SemanticVerions with two same versions because it get stuck on the comparision and never finishes. This is probably because the result collection never seems as ordered because on every pass, the equal versions seem to be in wrong order (the second should go before the first).

@JakeGinnivan
Copy link
Contributor

Nice, that is a silly bug for sure!

JakeGinnivan added a commit that referenced this pull request Jun 3, 2014
Fixed bug in SemanticVersion.Compare
@JakeGinnivan JakeGinnivan merged commit 87c390b into GitTools:master Jun 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants