From 8b6621abdc06a1cdd534ebc64957a3e3395209a4 Mon Sep 17 00:00:00 2001 From: Matthias Portzel Date: Mon, 20 Jan 2025 17:33:51 -0500 Subject: Update some missed Int -> int --- sqlite.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlite.zig b/sqlite.zig index 08e0a34..395d290 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -1463,7 +1463,7 @@ pub fn Iterator(comptime Type: type) type { return std.meta.stringToEnum(FieldType, inner_value) orelse FieldType.default; } - if (@typeInfo(FieldType.BaseType) == .Int) { + if (@typeInfo(FieldType.BaseType) == .int) { return @enumFromInt(@as(TI.tag_type, @intCast(inner_value))); } @compileError("enum column " ++ @typeName(FieldType) ++ " must have a BaseType of either string or int"); @@ -1680,7 +1680,7 @@ pub const DynamicStatement = struct { .@"enum" => { if (comptime isZigString(FieldType.BaseType)) { try self.bindField(FieldType.BaseType, options, field_name, i, @tagName(field)); - } else if (@typeInfo(FieldType.BaseType) == .Int) { + } else if (@typeInfo(FieldType.BaseType) == .int) { try self.bindField(FieldType.BaseType, options, field_name, i, @intFromEnum(field)); } else { @compileError("enum column " ++ @typeName(FieldType) ++ " must have a BaseType of either string or int to bind"); -- cgit v1.2.3