Skip to content

Conversation

@mmitche
Copy link
Member

@mmitche mmitche commented Aug 6, 2021

Based on operator precedence, 0x3FFF << 4 was happening first, ensuring that we always cut off the lower 4 bits of the build number when generating an Msi version.

The good news appears to be that the Major and Minor stay the same or go up, though the patch value will go down.

Before: A build number major value of 30327 or 30328 and build number value of 9 would generate 48.0.30329
After: 48.3.26489 and 48.3.26505, respectively.

To double check:

Based on operator precedence, `0x3FFF << 4` was happening first, ensuring that we always cut off the lower 4 bits of the build number when generating an Msi version.

The good news appears to be that the Major and Minor stay the same or go up, though the patch value will go down.

Before: A build number major value of 30327 or 30328 and build number value of 9 would generate `48.0.30329`
After: `48.3.26489` and `48.3.26505`, respectively.
Copy link
Member

@NikolaMilosavljevic NikolaMilosavljevic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, great find.

@mmitche mmitche enabled auto-merge (squash) August 6, 2021 16:32
@mmitche mmitche merged commit 2c76d9e into main Aug 6, 2021
@mmitche mmitche deleted the mmitche-patch-1 branch August 6, 2021 17:48
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.

4 participants