Skip to content

[bug] Wrong LIVED CONDITIONALS_NEGATION #224

@antonmedv

Description

@antonmedv

🐞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.

Metadata

Metadata

Assignees

Labels

c/bugCategory: A issue or PR related to a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions