Skip to content

Commit

Permalink
fix(parser): wrong tagged union order
Browse files Browse the repository at this point in the history
  • Loading branch information
RossComputerGuy committed Feb 2, 2024
1 parent 70ac16c commit 1bd44f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webidl/Parser/productions/Integer.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const Parser = @import("../../Parser.zig");
const Integer = @This();

pub const Value = union(std.builtin.Signedness) {
unsigned: u64,
signed: i64,
unsigned: u64,

pub fn parse(sign: std.builtin.Signedness, text: []const u8) !Value {
return if (sign == .signed) .{
Expand Down

0 comments on commit 1bd44f1

Please sign in to comment.