We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fn toInt(value: *const u7) u7 { return value.*; } pub const LevelUpMove = packed struct { move_id: u9, level: u7, }; test "" { var lup: LevelUpMove = undefined; _ = toInt(lup.level); }
Call parameter type does not match function signature! %2 = getelementptr inbounds %LevelUpMove, %LevelUpMove* %lup, i32 0, i32 0, !dbg !618 i7* %3 = call fastcc i7 @toInt(i16* %2), !dbg !620 LLVM ERROR: Broken module found, compilation aborted!
The text was updated successfully, but these errors were encountered:
Ah, this is a missing compile error. Here's the error you get if you explicitly pass a pointer:
test.zig:12:19: error: expected type '*const u7', found '*align(:9:16) u7' _ = toInt(&lup.level); ^
Sorry, something went wrong.
5fd3af9
I was able to make it work fine.
No branches or pull requests
The text was updated successfully, but these errors were encountered: