Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version zero padding vs. postrelease suffix #14

Open
AMDmi3 opened this issue Mar 26, 2018 · 2 comments
Open

Version zero padding vs. postrelease suffix #14

AMDmi3 opened this issue Mar 26, 2018 · 2 comments

Comments

@AMDmi3
Copy link
Member

AMDmi3 commented Mar 26, 2018

From libversion point of view, 1.4rc2 != 1.4.0rc2, while from human point of view it's probably the same thing. Not sure how to fix that yet.

@AMDmi3
Copy link
Member Author

AMDmi3 commented Mar 26, 2018

Rough idea would be to save intermediate non-equal comparison result, then try to eat zeroes until both arguments are in -a1 form. If that succeeds, return new result, otherwise return saved result.

@AMDmi3
Copy link
Member Author

AMDmi3 commented Jul 27, 2018

Not sure if this won't break ordering in specific cases though, as in #17.

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

No branches or pull requests

1 participant