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

cb consumes more than it should #68

Closed
selendym opened this issue Nov 24, 2021 · 1 comment · Fixed by #71
Closed

cb consumes more than it should #68

selendym opened this issue Nov 24, 2021 · 1 comment · Fixed by #71
Labels
bug Something isn't working

Comments

@selendym
Copy link

Hello.

Currently, the change number of bits command seems to break things, as it will consume every input that has the substring "cb" anywhere within it.
This includes all hex numbers that match this, so numbers like 0xcb are impossible to input as regular numbers, though upper case does work.

The problem is most likely here:

else if (strstr(in, "cb") != NULL) {

As an easy fix, the substring could be changed to something that doesn't clash with anything else, like "bits".

Best regards.

@alt-romes alt-romes added the bug Something isn't working label Nov 27, 2021
@alt-romes
Copy link
Owner

@ajcostafct maybe you can tackle this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants