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

Update variables.c #63

Merged
merged 6 commits into from
Mar 5, 2024
Merged

Update variables.c #63

merged 6 commits into from
Mar 5, 2024

Conversation

sadeem-albir
Copy link
Contributor

Fix unprivelaged variable getting that prints bizarre values of variables that haven't been yet assigned. Previously, if you typed 'b' or another variable and pressed enter, it would output some exponential number like 1.23e-142 if you didn't assign that variable before. This fix prevents that by comparing varindex with the index of the current variable VARGET is checking for.

Fix unprivelaged variable getting that prints bizarre values of variables that haven't been yet assigned. Previously, if you typed 'b' or another variable and pressed enter, it would output some exponential number like 1.23e-142 if you didn't assign that variable before. This fix prevents that by comparing varindex with the index of the current variable VARGET is checking for.
@ohkimur
Copy link
Owner

ohkimur commented Feb 29, 2024

@sadeem-albir Can you resolve the conflicts?

sadeem-albir and others added 4 commits February 29, 2024 23:30
Test if conflict has been resolved
Aligned patch 5 (this) with patch 4 to ease readability. In this case, "if (isalpha(c) && !isupper(c))" has been simplified to "if (islower(c))"
Copy link
Owner

@ohkimur ohkimur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sadeem-albir Thanks for contributing!

@ohkimur ohkimur merged commit d7272a2 into ohkimur:main Mar 5, 2024
1 check 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