Commit 6272e93b authored by Rico Tzschichholz's avatar Rico Tzschichholz

Accept string.index_of_nth_char() to return long or int for new valac

parent a2b2d201
Pipeline #38091 passed with stage
in 7 minutes and 51 seconds
......@@ -123,7 +123,7 @@ public class ContactEntryCompletion : Gtk.EntryCompletion {
return empty_addresses;
int cursor_position = entry.cursor_position;
int cursor_offset = original_text.index_of_nth_char(cursor_position);
var cursor_offset = original_text.index_of_nth_char(cursor_position);
if (cursor_offset < 0)
return empty_addresses;
......@@ -136,7 +136,7 @@ public class ContactEntryCompletion : Gtk.EntryCompletion {
if (addresses.size < 1)
return empty_addresses;
int bytes_seen_so_far = 0;
long bytes_seen_so_far = 0L;
current_address_index = addresses.size - 1;
for (int i = 0; i < addresses.size; i++) {
int token_bytes = addresses[i].length + delimiter.length;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment