Branch: refs/heads/document-messages Author: Matthew Brush matt@geany.org Committer: Matthew Brush matt@geany.org Date: Sun, 25 Dec 2011 22:44:32 Commit: fb8e061242c905356f2a9462fd0ab5c302c11a91 https://github.com/geany/geany/commit/fb8e061242c905356f2a9462fd0ab5c302c11a...
Log Message: ----------- Prevent warning about comparing signed and unsigned values
The g_match_info_fetch_pos() function uses a signed value for the match_num parameter, even though values less than 0 are not valid, so a cast is used.
Modified Paths: -------------- src/search.c
Modified: src/search.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -1868,7 +1868,7 @@ static gint find_regex(ScintillaObject *sci, guint pos, GRegex *regex) /* Warning: minfo will become invalid when 'text' does! */ if (g_regex_match_full(regex, text, -1, pos, 0, &minfo, NULL)) { - gint i; + guint i;
/* copy whole match text and offsets before they become invalid */ regex_match_text = g_match_info_fetch(minfo, 0); @@ -1877,7 +1877,7 @@ static gint find_regex(ScintillaObject *sci, guint pos, GRegex *regex) { gint start = -1, end = -1;
- g_match_info_fetch_pos(minfo, i, &start, &end); + g_match_info_fetch_pos(minfo, (gint)i, &start, &end); regex_matches[i].start = start; regex_matches[i].end = end; }
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).