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

GeoPackage: Bitwise AND used instead of logical AND #783

Closed
program-- opened this issue Mar 29, 2024 · 0 comments · Fixed by #791
Closed

GeoPackage: Bitwise AND used instead of logical AND #783

program-- opened this issue Mar 29, 2024 · 0 comments · Fixed by #791
Labels
bug Something isn't working

Comments

@program--
Copy link
Contributor

program-- commented Mar 29, 2024

if (indicator > 0 & indicator < 5) {

Technically, this evaluates correctly, but should be a logical AND.

I probably had R in my mind when I wrote this 😅, since its vectorized logical AND is only a single ampersand.

Current behavior

The expression 0 < indiciator < 5 is evaluated using a bitwise AND.

Expected behavior

The expression should evaluate via a logical AND (&&).

@program-- program-- added the bug Something isn't working label Mar 29, 2024
program-- added a commit to program--/ngen that referenced this issue Apr 8, 2024
@program-- program-- mentioned this issue Apr 8, 2024
10 tasks
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 a pull request may close this issue.

1 participant