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

Fix printf/scanf format signed/unsigned #3320

Merged

Conversation

BsAtHome
Copy link
Contributor

@BsAtHome BsAtHome commented Feb 4, 2025

This PR fixes printf/scanf formats as indicated by cppcheck:

  • printf conversion specifiers must be unsigned when the argument is unsigned,
  • scanf conversion "requires" an unsigned argument when the conversion specifiers is unsigned. Some instances are fixed by cast because changing the actual variable type may be problematic.

@andypugh andypugh merged commit 6f2c32a into LinuxCNC:master Feb 6, 2025
10 checks passed
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.

2 participants