summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2021-04-23 02:58:24 +0200
committerGravatar Vincent Rischmann2021-04-23 02:58:24 +0200
commit204210207c81ef8d1ab2f0d6b25eb9ea1b30e477 (patch)
tree7b302b20a81306819f30af8eec8943400b0afba5 /sqlite.zig
parentMerge pull request #28 from daurnimator/array-exact-size (diff)
downloadzig-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.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite.zig b/sqlite.zig
index 0571ef8..097c7a9 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -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 }