lib/repo-file: Add casts to appease GLib g_object_ref cast PR
This fixes the build with https://bugzilla.gnome.org/show_bug.cgi?id=790697 Closes: #1363 Approved by: jlebon
This commit is contained in:
1 parent
9bb59511ae
commit
9917887a3f
1 file changed
+2
-2
@@ -508,7 +508,7 @@ ostree_repo_file_get_parent (GFile *file)
|
|||||||
{
|
{
|
||||||
OstreeRepoFile *self = OSTREE_REPO_FILE (file);
|
OstreeRepoFile *self = OSTREE_REPO_FILE (file);
|
||||||
|
|
||||||
return g_object_ref (self->parent);
|
return (GFile*)g_object_ref (self->parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GFile *
|
static GFile *
|
||||||
@@ -621,7 +621,7 @@ ostree_repo_file_resolve_relative_path (GFile *file,
|
|||||||
g_assert (*relative_path == '/');
|
g_assert (*relative_path == '/');
|
||||||
|
|
||||||
if (strcmp (relative_path, "/") == 0)
|
if (strcmp (relative_path, "/") == 0)
|
||||||
return g_object_ref (ostree_repo_file_get_root (self));
|
return (GFile*)g_object_ref (ostree_repo_file_get_root (self));
|
||||||
|
|
||||||
if (self->parent)
|
if (self->parent)
|
||||||
return ostree_repo_file_resolve_relative_path ((GFile*)ostree_repo_file_get_root (self),
|
return ostree_repo_file_resolve_relative_path ((GFile*)ostree_repo_file_get_root (self),
|
||||||
|
|||||||
Reference in new issue
Block a user