From 4b7e618b43b92faf60abd59384cba723922f6ecf Mon Sep 17 00:00:00 2001 From: Tarry Singh Date: Mon, 2 Sep 2024 14:11:47 +0000 Subject: [PATCH] zml/aio: add bool handling in struct population within populateStruct --- zml/aio.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zml/aio.zig b/zml/aio.zig index 5f299b3..9829990 100644 --- a/zml/aio.zig +++ b/zml/aio.zig @@ -427,6 +427,10 @@ fn _populateStruct( }, .void => true, .@"union" => true, + .bool => { + obj.* = undefined; + return true; + }, else => if (required) { log.err("{s}: {s} type not supported", .{ prefix, @typeName(T) }); return error.UnsupportedMetadataType;