diff options
author | Evan Nemerson <evan@polussystems.com> | 2009-07-08 12:26:23 -0700 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-07-27 21:01:53 +0200 |
commit | 0378304718afee5892e779df537a30bedf818206 (patch) | |
tree | 4d09eff9d9f8d9310e477678db6301399426a69d /vapigen | |
parent | 2685caf7e0ee6bba8bbe0643d993a08fab37395f (diff) | |
download | vala-0378304718afee5892e779df537a30bedf818206.tar.gz |
Use (s)size_t instead of (u)long in several string methods
Fixes bug 577352.
Diffstat (limited to 'vapigen')
-rw-r--r-- | vapigen/valagidlparser.vala | 2 | ||||
-rw-r--r-- | vapigen/valagirparser.vala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala index bad2e099c..b4426ea66 100644 --- a/vapigen/valagidlparser.vala +++ b/vapigen/valagidlparser.vala @@ -840,7 +840,7 @@ public class Vala.GIdlParser : CodeVisitor { } } while (common_prefix.len () > 0 && (!common_prefix.has_suffix ("_") || - (value.name.offset (common_prefix.size ()).get_char ().isdigit ()) && (value.name.len () - common_prefix.len ()) <= 1)) { + (value.name.offset (common_prefix.length).get_char ().isdigit ()) && (value.name.len () - common_prefix.len ()) <= 1)) { // enum values may not consist solely of digits common_prefix = common_prefix.ndup (common_prefix.size () - 1); } diff --git a/vapigen/valagirparser.vala b/vapigen/valagirparser.vala index 650c414f3..1e4812096 100644 --- a/vapigen/valagirparser.vala +++ b/vapigen/valagirparser.vala @@ -302,7 +302,7 @@ public class Vala.GirParser : CodeVisitor { } } while (common_prefix.len () > 0 && (!common_prefix.has_suffix ("_") || - (cname.offset (common_prefix.size ()).get_char ().isdigit ()) && (cname.len () - common_prefix.len ()) <= 1)) { + (cname.offset (common_prefix.length).get_char ().isdigit ()) && (cname.len () - common_prefix.len ()) <= 1)) { // enum values may not consist solely of digits common_prefix = common_prefix.ndup (common_prefix.size () - 1); } |