]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Do not use size_t for GString.len
authorJürg Billeter <j@bitron.ch>
Fri, 27 Nov 2009 09:43:11 +0000 (10:43 +0100)
committerJürg Billeter <j@bitron.ch>
Fri, 27 Nov 2009 09:43:11 +0000 (10:43 +0100)
GString methods are not size_t safe and binding the len field as
size_t is inconvenient for application developers due to the
inconsistent handling in GLib.

vapi/glib-2.0.vapi

index dd92f1cef1481a4b21048a86e82d2cc95d4c1062..65da48d64566d897a7c440aacd4b3eb0d0590e24 100644 (file)
@@ -3327,8 +3327,8 @@ namespace GLib {
                public void append_printf (string format, ...);
 
                public string str;
-               public size_t len;
-               public size_t allocated_len;
+               public ssize_t len;
+               public ssize_t allocated_len;
        }
 
        /* String Chunks */