commit ff3fcb0290a1ce3f938d8cdaae459157af7d3e37 (tree)
parent 944b55fb687d11ab3a1655849f56a651272cbe09
Author: Frank Denis <github@pureftpd.org>
Date: Thu, 28 May 2026 16:42:21 +0200
Fix leftover from the older StructField
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/crypto/codecs/asn1/der/Encoder.zig b/lib/std/crypto/codecs/asn1/der/Encoder.zig
@@ -43,7 +43,7 @@ fn anyTag(self: *Encoder, tag_: Tag, val: anytype) !void {
const is_default = if (f_attrs.@"comptime") false else if (f_attrs.defaultValue(f_type)) |default_val| brk: {
break :brk std.mem.eql(u8, std.mem.asBytes(&default_val), std.mem.asBytes(&field_val));
} else false;
- const is_null_optional = if (@typeInfo(f.type) == .optional) field_val == null else false;
+ const is_null_optional = if (@typeInfo(f_type) == .optional) field_val == null else false;
if (!is_default and !is_null_optional) {
const start2 = self.buffer.data.len;