From 19535aab5760eeaf2979a9dadfca3bb21d1594b9 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Thu, 21 Sep 2023 00:10:33 +0200 Subject: Don't specify the type of the variable Not sure what's going on with the name mangling introduced in https://github.com/ziglang/zig/commit/9ea2076663730ab6ac9cad5cb5f84e58198d4d95 but we don't actually have to specify the type of the variable here. Remove it so that we don't have to care. Fixes #135 --- vtab.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtab.zig b/vtab.zig index e5fc38d..f5a5fd5 100644 --- a/vtab.zig +++ b/vtab.zig @@ -232,7 +232,7 @@ pub const BestIndexBuilder = struct { var index_info = self.index_info; // Populate the constraint usage - var constraint_usage: []c.struct_sqlite3_index_constraint_usage_4 = index_info.aConstraintUsage[0..self.constraints.len]; + var constraint_usage = index_info.aConstraintUsage[0..self.constraints.len]; for (self.constraints, 0..) |constraint, i| { constraint_usage[i].argvIndex = constraint.usage.argv_index; constraint_usage[i].omit = if (constraint.usage.omit) 1 else 0; -- cgit v1.2.3