From 60aa457d7848c4a7525c09e3dd081f62bff8cddf Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Fri, 15 Aug 2025 16:43:55 -0700 Subject: [PATCH] fix compile error on pointer cast --- src/notmuch.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notmuch.zig b/src/notmuch.zig index 99fc932..722f2cb 100644 --- a/src/notmuch.zig +++ b/src/notmuch.zig @@ -57,7 +57,7 @@ pub const Db = struct { "", null, &db, - &err, + @ptrCast(&err), ); defer if (err) |e| if (status == null) std.c.free(e); if (open_status != c.NOTMUCH_STATUS_SUCCESS) { @@ -97,7 +97,7 @@ pub const Db = struct { // query = notmuch_query_create (database, query_string); // // for (stat = notmuch_query_search_threads (query, &threads); - // stat == NOTMUCH_STATUS_SUCCESS && + // stat == NOTMUCH_STATUS_SUCCESS && // notmuch_threads_valid (threads); // notmuch_threads_move_to_next (threads)) // {