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
The definitions in zig.zig to replace the HIWORD and LOWORD macros use pre-0.14.0 definition of Type. This causes
win32\zig.zig:288:10: error: no field named 'Int' in enum '@typeInfo(builtin.Type).@"union".tag_type.?' .Int => |int| switch (int.signedness) { ~^~~
Relevent code in zig.zig:
pub fn loword(value: anytype) u16 { switch (@typeInfo(@TypeOf(value))) { .Int => |int| switch (int.signedness) { .signed => return loword(@as(@Type(.{ .Int = .{ .signedness = .unsigned, .bits = int.bits } }), @bitCast(value))), .unsigned => return if (int.bits <= 16) value else @intCast(0xffff & value), }, else => {}, } @compileError("unsupported type " ++ @typeName(@TypeOf(value))); } pub fn hiword(value: anytype) u16 { switch (@typeInfo(@TypeOf(value))) { .Int => |int| switch (int.signedness) { .signed => return hiword(@as(@Type(.{ .Int = .{ .signedness = .unsigned, .bits = int.bits } }), @bitCast(value))), .unsigned => return @intCast(0xffff & (value >> 16)), }, else => {}, } @compileError("unsupported type " ++ @typeName(@TypeOf(value))); }
The text was updated successfully, but these errors were encountered:
Just pushed a fix (e8739b3), let me know if you're still having issues.
Sorry, something went wrong.
No branches or pull requests
The definitions in zig.zig to replace the HIWORD and LOWORD macros use pre-0.14.0 definition of Type. This causes
Relevent code in zig.zig:
The text was updated successfully, but these errors were encountered: