| ... | @@ -268,7 +268,7 @@ pub fn zeroes(comptime T: type) T { | ... | @@ -268,7 +268,7 @@ pub fn zeroes(comptime T: type) T { |
| 268 | }, | 268 | }, |
| 269 | .Struct => |struct_info| { | 269 | .Struct => |struct_info| { |
| 270 | if (@sizeOf(T) == 0) return T{}; | 270 | if (@sizeOf(T) == 0) return T{}; |
| 271 | if (comptime meta.containerLayout(T) == .Extern) { | 271 | if (struct_info.layout == .Extern) { |
| 272 | var item: T = undefined; | 272 | var item: T = undefined; |
| 273 | set(u8, asBytes(&item), 0); | 273 | set(u8, asBytes(&item), 0); |
| 274 | return item; | 274 | return item; |