GNOME Bugzilla – Bug 645181
string.index_of_nth_char should return long, not int
Last modified: 2018-05-22 13:58:43 UTC
The builtin string method public int index_of_nth_char (long c) returns an int. It should instead return a long since that's the data type used to represent byte indexes in other string methods.
Agreed. Would that have any negative consequences for existing code?
Created attachment 368997 [details] [review] glib-2.0: Make string.index_of_nth_char() return index of type long
Needs to be postponed until next cycle. A bunch of projects assigning the result to explicit "int" variables which obviously causes failures. http://paldo.org:8010/builders/vala-staging/builds/442
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/183.