mirror of
https://github.com/zoriya/zig-wayland.git
synced 2026-06-09 13:01:17 +00:00
Make all enums based on u32
This may not be the perfect fix, but it'll work for now
This commit is contained in:
+1
-1
@@ -420,7 +420,7 @@ const Enum = struct {
|
||||
fn emit(e: Enum, writer: anytype) !void {
|
||||
try writer.writeAll("pub const ");
|
||||
try printIdentifier(writer, case(.title, e.name));
|
||||
try writer.writeAll(" = enum {");
|
||||
try writer.writeAll(" = enum(u32) {");
|
||||
for (e.entries.items) |entry| {
|
||||
try printIdentifier(writer, entry.name);
|
||||
try writer.print("= {},", .{entry.value});
|
||||
|
||||
Reference in New Issue
Block a user