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

[bug] Wrong LIVED CONDITIONALS_NEGATION #224

Open
antonmedv opened this issue Jan 13, 2024 · 2 comments
Open

[bug] Wrong LIVED CONDITIONALS_NEGATION #224

antonmedv opened this issue Jan 13, 2024 · 2 comments
Assignees
Labels
c/bug Category: A issue or PR related to a bug

Comments

@antonmedv
Copy link

🐞Bug Report

Bug Description

Got this

LIVED CONDITIONALS_NEGATION at vm/vm.go:271:12

To Reproduce

Steps to reproduce the behavior:

Run in https://github.com/expr-lang/expr

But at vm.go:271:

-			if size <= 0 {
+			if !(size <= 0) {
				size = 0
			}

This change causes errors in tests.

@antonmedv antonmedv added the c/bug Category: A issue or PR related to a bug label Jan 13, 2024
@rusinikita
Copy link
Contributor

Hi! Mutation causes test fail. Did I understand right?

@antonmedv
Copy link
Author

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/bug Category: A issue or PR related to a bug
Projects
None yet
Development

No branches or pull requests

3 participants