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

BIN to HEX conversion only works properly if length of BIN is a multiple of 4 #11

Open
mh- opened this issue Dec 14, 2022 · 0 comments
Open

Comments

@mh-
Copy link

mh- commented Dec 14, 2022

If the number of bits is not a multiple of 4, strange results occur, because the conversion does not extend the start of the BIN value with zeroes, like most other conversion tools would.
See

int binCOUNT=(bin2hexBUFFlen-1);

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