Skip to content

Fix error in alpha hex value calculation#30

Open
danielwinkler wants to merge 1 commit intosebmarkbage:masterfrom
danielwinkler:master
Open

Fix error in alpha hex value calculation#30
danielwinkler wants to merge 1 commit intosebmarkbage:masterfrom
danielwinkler:master

Conversation

@danielwinkler
Copy link

The current logic length == 1 ? a + a : a; is wrong, it should be length == 1 ? '0' + a : a;

This PR fixes this problem and simplifies the toHex logic

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.

3 participants