From afa45bd6b886838b760884a1870f274fc33b5f89 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Mon, 3 Apr 2023 14:27:21 -0600 Subject: [PATCH] ruby: query: fix get sort The order was wrong, right now `query.sort` doesn't return a number. Signed-off-by: Felipe Contreras --- bindings/ruby/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/ruby/query.c b/bindings/ruby/query.c index 8a2b4d3d..077def02 100644 --- a/bindings/ruby/query.c +++ b/bindings/ruby/query.c @@ -45,7 +45,7 @@ notmuch_rb_query_get_sort (VALUE self) Data_Get_Notmuch_Query (self, query); - return FIX2INT (notmuch_query_get_sort (query)); + return INT2FIX (notmuch_query_get_sort (query)); } /*