]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Use strtol instead of atol for string.to_long
authorEvan Nemerson <evan@coeus-group.com>
Sun, 14 Mar 2010 19:34:01 +0000 (12:34 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Sun, 14 Mar 2010 19:52:07 +0000 (12:52 -0700)
vapi/glib-2.0.vapi

index bac7126b7f086eff018baf5c446b901a0a6e2f0d..f1f215780b66ecbe8070a2c85cf9ff3b3afbea49 100644 (file)
@@ -911,8 +911,8 @@ public class string {
        
        [CCode (cname = "atoi")]
        public int to_int ();
-       [CCode (cname = "atol")]
-       public long to_long ();
+       [CCode (cname = "strtol")]
+       public long to_long (out weak string endptr = null, int _base = 0);
        [CCode (cname = "g_ascii_strtod")]
        public double to_double (out weak string endptr = null);
        [CCode (cname = "strtoul")]