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

usage of correct type (int) for rate variable #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RamaMalladiAWS
Copy link

@RamaMalladiAWS RamaMalladiAWS commented Jun 6, 2023

The rate variable needs to be an int.

The rate variable was declared as "char". But it needs to be an int. This PR changes it.

Standard build and run.

Builds and works out-of-the-box.

@RamaMalladiAWS RamaMalladiAWS changed the title usage of correct type (unsigned int) for rate variable usage of correct type (int) for rate variable Jun 6, 2023
@abondarev84
Copy link

any update on this?

@AGSaidi
Copy link

AGSaidi commented Jul 17, 2023

Missing in the description seems to be that, the signedness of char isn't specified in the c standard, and arm64/aarch64/arm all assume unsigned. This means that getopt_long() doesn't work right and since getopt_long() returns an int this fixes argument parsing on arm-based systems.

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