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

const: Negation should work with floating point values #560

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

mkilgore
Copy link
Contributor

Negation was only making use of the integer value when calculating the negative, resulting in incorrect values when the original was actually a floating-point value.

Fixes: #542

Negation was only making use of the integer value when calculating the
negative, resulting in incorrect values when the original was actually a
floating-point value.

Fixes: QB64-Phoenix-Edition#542
@mkilgore mkilgore added the bug Something isn't working label Oct 28, 2024
@RhoSigma-QB64 RhoSigma-QB64 merged commit 22d49c5 into QB64-Phoenix-Edition:main Oct 31, 2024
4 checks passed
@RhoSigma-QB64 RhoSigma-QB64 mentioned this pull request Dec 4, 2024
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 this pull request may close these issues.

Unary negation does not work correctly when using CONST
3 participants