Skip to content

Commit 27d10c1

Browse files
committed
fix for latest zig
1 parent 97811f2 commit 27d10c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vtab.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub const ModuleContext = struct {
3232
allocator: mem.Allocator,
3333
};
3434

35-
fn dupeToSQLiteString(s: []const u8) [*c]const u8 {
35+
fn dupeToSQLiteString(s: []const u8) [*c]u8 {
3636
var buffer: [*c]u8 = @ptrCast(c.sqlite3_malloc(@intCast(s.len + 1)));
3737

3838
mem.copyForwards(u8, buffer[0..s.len], s);
@@ -730,7 +730,7 @@ pub fn VirtualTable(
730730
return c.SQLITE_ERROR;
731731
}
732732

733-
fn xConnect(db: ?*c.sqlite3, module_context_ptr: ?*anyopaque, argc: c_int, argv: [*c]const [*c]const u8, vtab: [*c][*c]c.sqlite3_vtab, err_str: [*c][*c]const u8) callconv(.C) c_int {
733+
fn xConnect(db: ?*c.sqlite3, module_context_ptr: ?*anyopaque, argc: c_int, argv: [*c]const [*c]const u8, vtab: [*c][*c]c.sqlite3_vtab, err_str: [*c][*c]u8) callconv(.C) c_int {
734734
const module_context = getModuleContext(module_context_ptr);
735735

736736
var arena = heap.ArenaAllocator.init(module_context.allocator);

0 commit comments

Comments
 (0)