diff options
| author | 2021-04-23 02:58:24 +0200 | |
|---|---|---|
| committer | 2021-04-23 02:58:24 +0200 | |
| commit | 204210207c81ef8d1ab2f0d6b25eb9ea1b30e477 (patch) | |
| tree | 7b302b20a81306819f30af8eec8943400b0afba5 /sqlite.zig | |
| parent | Merge pull request #28 from daurnimator/array-exact-size (diff) | |
| download | zig-sqlite-204210207c81ef8d1ab2f0d6b25eb9ea1b30e477.tar.gz zig-sqlite-204210207c81ef8d1ab2f0d6b25eb9ea1b30e477.tar.xz zig-sqlite-204210207c81ef8d1ab2f0d6b25eb9ea1b30e477.zip | |
fix error name
Diffstat (limited to 'sqlite.zig')
| -rw-r--r-- | sqlite.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -645,7 +645,7 @@ pub fn Iterator(comptime Type: type) type { | |||
| 645 | u8 => { | 645 | u8 => { |
| 646 | const size = @intCast(usize, c.sqlite3_column_bytes(self.stmt, i)); | 646 | const size = @intCast(usize, c.sqlite3_column_bytes(self.stmt, i)); |
| 647 | if (arr.sentinel == null) { | 647 | if (arr.sentinel == null) { |
| 648 | if (size != arr.len) return error.ArraySizeMisMatch; | 648 | if (size != arr.len) return error.ArraySizeMismatch; |
| 649 | } else if (size >= @as(usize, arr.len)) { | 649 | } else if (size >= @as(usize, arr.len)) { |
| 650 | return error.ArrayTooSmall; | 650 | return error.ArrayTooSmall; |
| 651 | } | 651 | } |