[ostree] Fix tests on 32 bit systems



commit 06fc597762796dc274485a367eee59d6842ea4f6
Author: John Hiesey <john hiesey com>
Date:   Wed May 6 16:41:55 2015 -0700

    Fix tests on 32 bit systems
    
    Use guint64 when the 't' format is used for GVariant

 .../ostree-repo-static-delta-compilation.c         |    2 +-
 src/libostree/ostree-repo.c                        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libostree/ostree-repo-static-delta-compilation.c 
b/src/libostree/ostree-repo-static-delta-compilation.c
index 86f8d14..760b563 100644
--- a/src/libostree/ostree-repo-static-delta-compilation.c
+++ b/src/libostree/ostree-repo-static-delta-compilation.c
@@ -1372,7 +1372,7 @@ ostree_repo_static_delta_generate (OstreeRepo                   *self,
       delta_part_header = g_variant_new ("(u aytt@ay)",
                                          OSTREE_DELTAPART_VERSION,
                                          ot_gvariant_new_ay_bytes (checksum_bytes),
-                                         g_variant_get_size (delta_part),
+                                         (guint64) g_variant_get_size (delta_part),
                                          part_builder->uncompressed_size,
                                          ot_gvariant_new_ay_bytes (objtype_checksum_array));
       g_variant_builder_add_value (part_headers, g_variant_ref (delta_part_header));
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index 6a20336..762d426 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -4004,7 +4004,7 @@ ostree_repo_regenerate_summary (OstreeRepo     *self,
 
       g_variant_builder_add_value (refs_builder, 
                                    g_variant_new ("(s(t ay@a{sv}))", ref,
-                                                  g_variant_get_size (commit_obj),
+                                                  (guint64) g_variant_get_size (commit_obj),
                                                   ostree_checksum_to_bytes_v (commit),
                                                   ot_gvariant_new_empty_string_dict ()));
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]