mirror of
https://github.com/zoriya/zig-wayland.git
synced 2025-12-18 13:05: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(.{
|
return @Type(.{
|
||||||
.Enum = .{
|
.Enum = .{
|
||||||
.layout = .Auto,
|
.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,
|
.fields = &enum_fields,
|
||||||
.decls = &.{},
|
.decls = &.{},
|
||||||
.is_exhaustive = true,
|
.is_exhaustive = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user