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

Negative numbers in a conditions aren't compiling correctly #72

Open
SchwarzFuchs opened this issue Jun 25, 2024 · 0 comments
Open

Negative numbers in a conditions aren't compiling correctly #72

SchwarzFuchs opened this issue Jun 25, 2024 · 0 comments

Comments

@SchwarzFuchs
Copy link

SchwarzFuchs commented Jun 25, 2024

Describe the bug
If you try to use a negative number in a condition, the result is "undefined"

To Reproduce
Steps to reproduce the behavior:

Write code like this:

var data = db.Setting
if data == -102
#some code
end

Result will be:

l r3 db Setting
beqz undefined if0exit
#some code
if0exit:

Expected behavior
Expected code:

l r3 db Setting
seq r15 r3 -102
beqz r15 if0exit
#some code
if0exit:
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

No branches or pull requests

1 participant