The order was wrong, right now `query.sort` doesn't return a number.
Signed-off-by: Felipe Contreras <[email protected]>
---
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));
}
/*
--
2.40.0+fc1
_______________________________________________
notmuch mailing list -- [email protected]
To unsubscribe send an email to [email protected]