Skip to content

Commit 0155a63

Browse files
authored
Merge pull request #175 from MatthiasPortzel/master
2 parents 18c42fb + 8b6621a commit 0155a63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlite.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ pub fn Iterator(comptime Type: type) type {
14631463

14641464
return std.meta.stringToEnum(FieldType, inner_value) orelse FieldType.default;
14651465
}
1466-
if (@typeInfo(FieldType.BaseType) == .Int) {
1466+
if (@typeInfo(FieldType.BaseType) == .int) {
14671467
return @enumFromInt(@as(TI.tag_type, @intCast(inner_value)));
14681468
}
14691469
@compileError("enum column " ++ @typeName(FieldType) ++ " must have a BaseType of either string or int");
@@ -1680,7 +1680,7 @@ pub const DynamicStatement = struct {
16801680
.@"enum" => {
16811681
if (comptime isZigString(FieldType.BaseType)) {
16821682
try self.bindField(FieldType.BaseType, options, field_name, i, @tagName(field));
1683-
} else if (@typeInfo(FieldType.BaseType) == .Int) {
1683+
} else if (@typeInfo(FieldType.BaseType) == .int) {
16841684
try self.bindField(FieldType.BaseType, options, field_name, i, @intFromEnum(field));
16851685
} else {
16861686
@compileError("enum column " ++ @typeName(FieldType) ++ " must have a BaseType of either string or int to bind");

0 commit comments

Comments
 (0)