diff options
| author | 2022-12-09 13:47:40 +0100 | |
|---|---|---|
| committer | 2022-12-09 13:47:40 +0100 | |
| commit | 0fb60a3ef43e0066cec8ae963544fa612b2ab294 (patch) | |
| tree | 962938eede3ee8f7a04e1c776525483dc8b82b32 | |
| parent | build: remove use_stage1 (diff) | |
| download | zig-sqlite-0fb60a3ef43e0066cec8ae963544fa612b2ab294.tar.gz zig-sqlite-0fb60a3ef43e0066cec8ae963544fa612b2ab294.tar.xz zig-sqlite-0fb60a3ef43e0066cec8ae963544fa612b2ab294.zip | |
fix redundant comptime
Diffstat (limited to '')
| -rw-r--r-- | sqlite.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -2019,7 +2019,7 @@ pub fn Statement(comptime opts: StatementOptions, comptime query: anytype) type | |||
| 2019 | const StructTypeInfo = @typeInfo(StructType).Struct; | 2019 | const StructTypeInfo = @typeInfo(StructType).Struct; |
| 2020 | 2020 | ||
| 2021 | if (comptime query.nb_bind_markers != StructTypeInfo.fields.len) { | 2021 | if (comptime query.nb_bind_markers != StructTypeInfo.fields.len) { |
| 2022 | @compileError(comptime std.fmt.comptimePrint("expected {d} bind parameters but got {d}", .{ | 2022 | @compileError(std.fmt.comptimePrint("expected {d} bind parameters but got {d}", .{ |
| 2023 | query.nb_bind_markers, | 2023 | query.nb_bind_markers, |
| 2024 | StructTypeInfo.fields.len, | 2024 | StructTypeInfo.fields.len, |
| 2025 | })); | 2025 | })); |