From 32e8023978af198040d9053e97127d3d0bb5d99f Mon Sep 17 00:00:00 2001 From: Ryan Liptak Date: Mon, 31 Oct 2022 15:53:27 -0700 Subject: Fix compile error with Zig 0.10.0 Fixes the following error: ``` sqlite.zig:343:50: error: expected type '[*c]const u8', found '[:0]const u8' const result = c.sqlite3_open_v2(path, &db, flags, null); ^~~~ ``` --- sqlite.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqlite.zig') diff --git a/sqlite.zig b/sqlite.zig index 59a43c9..df62794 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -340,7 +340,7 @@ pub const Db = struct { switch (options.mode) { .File => |path| { var db: ?*c.sqlite3 = undefined; - const result = c.sqlite3_open_v2(path, &db, flags, null); + const result = c.sqlite3_open_v2(path.ptr, &db, flags, null); if (result != c.SQLITE_OK or db == null) { if (db) |v| { diags.err = getLastDetailedErrorFromDb(v); -- cgit v1.2.3