From cc235e8a8d0c1aca0efb9e0852fe649623dce34d Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Thu, 29 Aug 2024 17:35:23 +0200 Subject: fix for latest zig --- query.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'query.zig') diff --git a/query.zig b/query.zig index dc1542f..e12ba6d 100644 --- a/query.zig +++ b/query.zig @@ -146,7 +146,7 @@ pub fn ParsedQuery(comptime tmp_query: []const u8) type { const typ = if (type_info_string[0] == '?') blk: { const child_type = ParseType(type_info_string[1..]); break :blk @Type(std.builtin.Type{ - .Optional = .{ + .optional = .{ .child = child_type, }, }); @@ -205,7 +205,7 @@ fn ParseType(comptime type_info: []const u8) type { if (type_info[0] == 'u' or type_info[0] == 'i') { return @Type(std.builtin.Type{ - .Int = std.builtin.Type.Int{ + .int = std.builtin.Type.Int{ .signedness = if (type_info[0] == 'i') .signed else .unsigned, .bits = std.fmt.parseInt(usize, type_info[1..type_info.len], 10) catch { @compileError("invalid type info " ++ type_info); -- cgit v1.2.3