[vala] glib-2.0: Do not use size_t for GString.len
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: Do not use size_t for GString.len
- Date: Fri, 27 Nov 2009 09:45:57 +0000 (UTC)
commit d641a38164cf76b7acd5d1ed90761ab9754d36e9
Author: Jürg Billeter <j bitron ch>
Date: Fri Nov 27 10:43:11 2009 +0100
glib-2.0: Do not use size_t for GString.len
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 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index dd92f1c..65da48d 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]