[glib: 3/5] gvariant: Use gsize rather than gint for array lengths



commit ca328615c87fce62d368c0532771fefbf3e00f15
Author: Philip Withnall <withnall endlessm com>
Date:   Tue Dec 4 12:54:39 2018 +0000

    gvariant: Use gsize rather than gint for array lengths
    
    This introduces no functional changes.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 glib/gvariant-parser.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gvariant-parser.c b/glib/gvariant-parser.c
index f9e296dbe..44e341965 100644
--- a/glib/gvariant-parser.c
+++ b/glib/gvariant-parser.c
@@ -1533,7 +1533,7 @@ unicode_unescape (const gchar  *src,
                   gint         *src_ofs,
                   gchar        *dest,
                   gint         *dest_ofs,
-                  gint          length,
+                  gsize         length,
                   SourceRef    *ref,
                   GError      **error)
 {
@@ -1553,7 +1553,7 @@ unicode_unescape (const gchar  *src,
     {
       parser_set_error (error, ref, NULL,
                         G_VARIANT_PARSE_ERROR_INVALID_CHARACTER,
-                        "invalid %d-character unicode escape", length);
+                        "invalid %" G_GSIZE_FORMAT "-character unicode escape", length);
       return FALSE;
     }
 


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