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

Not possible to use bigger type than u8 in for loop #80

Closed
MilkeeyCat opened this issue Oct 12, 2024 · 0 comments
Closed

Not possible to use bigger type than u8 in for loop #80

MilkeeyCat opened this issue Oct 12, 2024 · 0 comments
Labels
bug Something isn't working codegen Codegen related

Comments

@MilkeeyCat
Copy link
Owner

fn printf(format: *i8, _: usize) -> void;
fn main() -> u8 {
    for let i: usize = 0; i < 2; i = i + 1 {
        printf("%d\n", i);
    }
}
{standard input}: Assembler messages:
{standard input}:43: Error: operand type mismatch for `mov'
ld: cannot find main.o: No such file or directory
No such file or directory (os error 2)
@MilkeeyCat MilkeeyCat added bug Something isn't working codegen Codegen related labels Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working codegen Codegen related
Projects
None yet
Development

No branches or pull requests

1 participant