mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 22:13:11 -05:00
fixed patches
This commit is contained in:
parent
69a02c5ec4
commit
171e2b693c
2 changed files with 4 additions and 4 deletions
|
@ -23,17 +23,17 @@
|
||||||
// name will not be printed if the field is of type 'void'
|
// name will not be printed if the field is of type 'void'
|
||||||
// (which is a zero-bit type that takes up no space at all!):
|
// (which is a zero-bit type that takes up no space at all!):
|
||||||
- if (fields[0].??? != void) {
|
- if (fields[0].??? != void) {
|
||||||
+ if (fields[0].field_type != void) {
|
+ if (fields[0].type != void) {
|
||||||
print(" {s}", .{@typeInfo(Narcissus).Struct.fields[0].name});
|
print(" {s}", .{@typeInfo(Narcissus).Struct.fields[0].name});
|
||||||
}
|
}
|
||||||
|
|
||||||
- if (fields[1].??? != void) {
|
- if (fields[1].??? != void) {
|
||||||
+ if (fields[1].field_type != void) {
|
+ if (fields[1].type != void) {
|
||||||
print(" {s}", .{@typeInfo(Narcissus).Struct.fields[1].name});
|
print(" {s}", .{@typeInfo(Narcissus).Struct.fields[1].name});
|
||||||
}
|
}
|
||||||
|
|
||||||
- if (fields[2].??? != void) {
|
- if (fields[2].??? != void) {
|
||||||
+ if (fields[2].field_type != void) {
|
+ if (fields[2].type != void) {
|
||||||
print(" {s}", .{@typeInfo(Narcissus).Struct.fields[2].name});
|
print(" {s}", .{@typeInfo(Narcissus).Struct.fields[2].name});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,5 +12,5 @@
|
||||||
< ???,
|
< ???,
|
||||||
---
|
---
|
||||||
> field.name,
|
> field.name,
|
||||||
> field.field_type,
|
> field.type,
|
||||||
> @field(tuple, field.name),
|
> @field(tuple, field.name),
|
||||||
|
|
Loading…
Reference in a new issue