mirror of
https://github.com/zoriya/zig-wayland.git
synced 2025-12-06 07:06:12 +00:00
Fix list.FieldEnum when there are no fields
This commit is contained in:
@@ -443,7 +443,7 @@ pub const list = struct {
|
||||
return @Type(.{
|
||||
.Enum = .{
|
||||
.layout = .Auto,
|
||||
.tag_type = std.math.IntFittingRange(0, field_infos.len - 1),
|
||||
.tag_type = std.math.IntFittingRange(0, field_infos.len -| 1),
|
||||
.fields = &enum_fields,
|
||||
.decls = &.{},
|
||||
.is_exhaustive = true,
|
||||
|
||||
Reference in New Issue
Block a user