Skip to content

Fix minimum values of signed types in 1.ranges-of-variables.c #12

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SemkiShow
Copy link

Before my change the minimal value of signed types was bigger, than in reality.
For example:
The program said that the limits of signed char are -127 and 127, when the are in fact -128 and 127.
The fix is to just subtract 1 from the minimal value to get the real minimal value

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.

1 participant