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

Update major.minor.patch version for 64bit ints #61

Merged
merged 1 commit into from
Oct 4, 2017

Conversation

zknill
Copy link
Contributor

@zknill zknill commented Oct 4, 2017

Update NewVersion to parse ints with a 64bit int size.

Version's major, minor and patch fields are all int64 but NewVersion was
parsing them with a 32bit bitsize, update this to 64bits.

This is useful when the patch number is a timestamp in the format:
yyMMddHHmmssSSS which produces numbers like 171003153320169

Add a test cases using 2147483648 (1 more than max 32bit int).

Update NewVersion to parse ints with a 64bit int size.

Version's major, minor and patch fields are all int64 but NewVersion was
parsing them with a 32bit bitsize, update this to 64bits.

This is useful when the patch number is a timestamp in the format:
yyMMddHHmmssSSS

Add a test cases using 2147483648 (1 more than max 32bit int).
@mattfarina mattfarina merged commit 87d75b0 into Masterminds:master Oct 4, 2017
@mattfarina
Copy link
Member

@zknill thanks for the contribution

@zknill zknill deleted the parse-64bit-int branch October 4, 2017 14:04
@mattfarina
Copy link
Member

Version 1.4.0 has been released with the change.

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