]> git.cworth.org Git - notmuch/blobdiff - bindings/ruby/database.c
ruby: move towards more modern RTypedData
[notmuch] / bindings / ruby / database.c
index b9ad3373c3764e2ac654a85d7a01f4799fce9aba..bb4273e601bc7d7b134680f05f1d470225543ea6 100644 (file)
@@ -74,7 +74,7 @@ notmuch_rb_database_initialize (int argc, VALUE *argv, VALUE self)
        mode = NOTMUCH_DATABASE_MODE_READ_ONLY;
     }
 
-    Check_Type (self, T_DATA);
+    rb_check_typeddata (self, &notmuch_rb_object_type);
     if (create)
        ret = notmuch_database_create (path, &database);
     else