diff options
| author | 2023-09-21 00:10:33 +0200 | |
|---|---|---|
| committer | 2023-09-21 00:26:24 +0200 | |
| commit | 19535aab5760eeaf2979a9dadfca3bb21d1594b9 (patch) | |
| tree | fece2b19133e1680ce5fbab64032451726f1ee47 | |
| parent | Fix test build step for various plaforms (diff) | |
| download | zig-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.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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; |