fix compile error on pointer cast

This commit is contained in:
Emil Lerch 2025-08-15 16:43:55 -07:00
parent b4d645bca0
commit 60aa457d78
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -57,7 +57,7 @@ pub const Db = struct {
"", "",
null, null,
&db, &db,
&err, @ptrCast(&err),
); );
defer if (err) |e| if (status == null) std.c.free(e); defer if (err) |e| if (status == null) std.c.free(e);
if (open_status != c.NOTMUCH_STATUS_SUCCESS) { if (open_status != c.NOTMUCH_STATUS_SUCCESS) {
@ -97,7 +97,7 @@ pub const Db = struct {
// query = notmuch_query_create (database, query_string); // query = notmuch_query_create (database, query_string);
// //
// for (stat = notmuch_query_search_threads (query, &threads); // for (stat = notmuch_query_search_threads (query, &threads);
// stat == NOTMUCH_STATUS_SUCCESS && // stat == NOTMUCH_STATUS_SUCCESS &&
// notmuch_threads_valid (threads); // notmuch_threads_valid (threads);
// notmuch_threads_move_to_next (threads)) // notmuch_threads_move_to_next (threads))
// { // {