authorgravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2026-05-28 16:42:21+02:00
committergravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2026-05-28 16:42:21+02:00
logff3fcb0290a1ce3f938d8cdaae459157af7d3e37
tree1d361ae83426443feb29d913c7054536a04163df
parent944b55fb687d11ab3a1655849f56a651272cbe09

Fix leftover from the older StructField


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/crypto/codecs/asn1/der/Encoder.zig+1-1
......@@ -43,7 +43,7 @@ fn anyTag(self: *Encoder, tag_: Tag, val: anytype) !void {
4343 const is_default = if (f_attrs.@"comptime") false else if (f_attrs.defaultValue(f_type)) |default_val| brk: {
4444 break :brk std.mem.eql(u8, std.mem.asBytes(&default_val), std.mem.asBytes(&field_val));
4545 } else false;
46 const is_null_optional = if (@typeInfo(f.type) == .optional) field_val == null else false;
46 const is_null_optional = if (@typeInfo(f_type) == .optional) field_val == null else false;
4747
4848 if (!is_default and !is_null_optional) {
4949 const start2 = self.buffer.data.len;