mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-25 10:04:14 +03:00
core: Fix 32/8 bit confusion in pack index listing
This commit is contained in:
parent
83c91e7c85
commit
8d6bdaedfe
@ -767,6 +767,8 @@ GVariant *
|
|||||||
ostree_object_name_serialize (const char *checksum,
|
ostree_object_name_serialize (const char *checksum,
|
||||||
OstreeObjectType objtype)
|
OstreeObjectType objtype)
|
||||||
{
|
{
|
||||||
|
g_assert (objtype >= OSTREE_OBJECT_TYPE_FILE
|
||||||
|
&& objtype <= OSTREE_OBJECT_TYPE_COMMIT);
|
||||||
return g_variant_new ("(su)", checksum, (guint32)objtype);
|
return g_variant_new ("(su)", checksum, (guint32)objtype);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3327,7 +3327,7 @@ list_objects_in_index (OstreeRepo *self,
|
|||||||
{
|
{
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
OstreeRepoPrivate *priv = GET_PRIVATE (self);
|
OstreeRepoPrivate *priv = GET_PRIVATE (self);
|
||||||
guint32 objtype_u8;
|
guint8 objtype_u8;
|
||||||
guint64 offset;
|
guint64 offset;
|
||||||
ot_lobj GFile *index_path = NULL;
|
ot_lobj GFile *index_path = NULL;
|
||||||
ot_lvariant GVariant *index_variant = NULL;
|
ot_lvariant GVariant *index_variant = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user