[vala/staging] glib-2.0: Make string.index_of_nth_char() return index of type long



commit bd741624017c4b17de65798bfa36099c2da79526
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Feb 27 10:59:28 2018 +0100

    glib-2.0: Make string.index_of_nth_char() return index of type long
    
    https://bugzilla.gnome.org/show_bug.cgi?id=645181

 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 8278574..417b437 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1171,8 +1171,8 @@ public class string {
        [CCode (cname = "g_utf8_offset_to_pointer")]
        char* utf8_offset_to_pointer (long offset);
 
-       public int index_of_nth_char (long c) {
-               return (int) (this.utf8_offset_to_pointer (c) - (char*) this);
+       public long index_of_nth_char (long c) {
+               return (long) (this.utf8_offset_to_pointer (c) - (char*) this);
        }
 
        [CCode (cname = "g_utf8_prev_char")]


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