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

Can't return nonnegative literal from signed routine #155

Open
markjreed opened this issue Oct 9, 2024 · 0 comments
Open

Can't return nonnegative literal from signed routine #155

markjreed opened this issue Oct 9, 2024 · 0 comments

Comments

@markjreed
Copy link
Contributor

markjreed commented Oct 9, 2024

    sub foo() -> byte {
        return 1                ; or return 0, same result
    }

p8compile output: ERROR: type UBYTE of return value doesn't match subroutine's return type BYTE

@markjreed markjreed changed the title Can't return positive literal from signed routine Can't return nonnegative literal from signed routine Oct 9, 2024
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