mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
core: use OSTREE_OBJECT_TYPE_LAST instead of OSTREE_OBJECT_TYPE_COMMIT
OSTREE_OBJECT_TYPE_LAST holds the value of the last element in the enum. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
7bf138b036
commit
048c27588a
@ -1082,7 +1082,7 @@ ostree_object_name_serialize (const char *checksum,
|
||||
OstreeObjectType objtype)
|
||||
{
|
||||
g_assert (objtype >= OSTREE_OBJECT_TYPE_FILE
|
||||
&& objtype <= OSTREE_OBJECT_TYPE_COMMIT);
|
||||
&& objtype <= OSTREE_OBJECT_TYPE_LAST);
|
||||
return g_variant_new ("(su)", checksum, (guint32)objtype);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user