summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2023-09-21 00:10:33 +0200
committerGravatar Vincent Rischmann2023-09-21 00:26:24 +0200
commit19535aab5760eeaf2979a9dadfca3bb21d1594b9 (patch)
treefece2b19133e1680ce5fbab64032451726f1ee47
parentFix test build step for various plaforms (diff)
downloadzig-sqlite-19535aab5760eeaf2979a9dadfca3bb21d1594b9.tar.gz
zig-sqlite-19535aab5760eeaf2979a9dadfca3bb21d1594b9.tar.xz
zig-sqlite-19535aab5760eeaf2979a9dadfca3bb21d1594b9.zip
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
Diffstat (limited to '')
-rw-r--r--vtab.zig2
1 files changed, 1 insertions, 1 deletions
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 {
232 var index_info = self.index_info; 232 var index_info = self.index_info;
233 233
234 // Populate the constraint usage 234 // Populate the constraint usage
235 var constraint_usage: []c.struct_sqlite3_index_constraint_usage_4 = index_info.aConstraintUsage[0..self.constraints.len]; 235 var constraint_usage = index_info.aConstraintUsage[0..self.constraints.len];
236 for (self.constraints, 0..) |constraint, i| { 236 for (self.constraints, 0..) |constraint, i| {
237 constraint_usage[i].argvIndex = constraint.usage.argv_index; 237 constraint_usage[i].argvIndex = constraint.usage.argv_index;
238 constraint_usage[i].omit = if (constraint.usage.omit) 1 else 0; 238 constraint_usage[i].omit = if (constraint.usage.omit) 1 else 0;