From 36934f9afe4e993cc7c0cbdc54f39b8e5dab5293 Mon Sep 17 00:00:00 2001 From: Gracen Date: Sun, 8 Jun 2025 11:43:56 -0600 Subject: fix bug from previous commit, zig doesn't look ahead for type inference --- query.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query.zig b/query.zig index e1f3631..80d8981 100644 --- a/query.zig +++ b/query.zig @@ -56,7 +56,7 @@ pub fn ParsedQuery(comptime tmp_query: []const u8) type { // This holds the starting character of the string while // state is .inside_string so that we know which type of // string we're exiting from - var string_starting_character = null; + var string_starting_character: ?u8 = null; var current_bind_marker_type: [256]u8 = undefined; var current_bind_marker_type_pos = 0; -- cgit v1.2.3