X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fruby%2Fthreads.c;h=19e09a7e272a8344dcd0fa4acf50cef905044965;hp=5885f5651ceeb100b3011557d462c8bdba29d586;hb=12c36a5e3f676d5108cede6ac09204fb62fa20b1;hpb=682479592b33b13a22143f4fe67678c066bf223a diff --git a/bindings/ruby/threads.c b/bindings/ruby/threads.c index 5885f565..19e09a7e 100644 --- a/bindings/ruby/threads.c +++ b/bindings/ruby/threads.c @@ -53,7 +53,7 @@ notmuch_rb_threads_each (VALUE self) for (; notmuch_threads_valid (threads); notmuch_threads_move_to_next (threads)) { thread = notmuch_threads_get (threads); - rb_yield (Data_Wrap_Struct (notmuch_rb_cThread, NULL, NULL, thread)); + rb_yield (Data_Wrap_Notmuch_Object (notmuch_rb_cThread, thread)); } return self;