From 8c2bb73ccd2b1a9222bf8011b592159d787b68df Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sat, 17 Sep 2022 17:44:01 +0200 Subject: fix for latest zig --- query.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'query.zig') diff --git a/query.zig b/query.zig index 2b9808e..99b7d7c 100644 --- a/query.zig +++ b/query.zig @@ -106,7 +106,7 @@ pub fn ParsedQuery(comptime query: []const u8) ParsedQueryState(query.len) { // Handles optional types const typ = if (type_info_string[0] == '?') blk: { const child_type = ParseType(type_info_string[1..]); - break :blk @Type(std.builtin.TypeInfo{ + break :blk @Type(std.builtin.Type{ .Optional = .{ .child = child_type, }, @@ -176,8 +176,8 @@ fn ParseType(type_info: []const u8) type { if (mem.eql(u8, "isize", type_info)) return isize; if (type_info[0] == 'u' or type_info[0] == 'i') { - return @Type(std.builtin.TypeInfo{ - .Int = std.builtin.TypeInfo.Int{ + return @Type(std.builtin.Type{ + .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