Make all enums based on u32

This may not be the perfect fix, but it'll work for now
This commit is contained in:
Isaac Freund
2020-10-11 21:52:06 +02:00
parent c1d16f45f1
commit 5878169e56
+1 -1
View File
@@ -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});