Branch: refs/heads/master Author: elextr elextr@gmail.com Committer: elextr elextr@gmail.com Date: Mon, 05 Aug 2013 02:13:42 UTC Commit: f15f61768d190dbddb58a7e25b72be035f7cffda https://github.com/geany/geany/commit/f15f61768d190dbddb58a7e25b72be035f7cff...
Log Message: ----------- Fix sign comparison warning
Since the previous line ensured len is < 100, just casting it is fine.
Modified Paths: -------------- src/editor.c
Modified: src/editor.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -665,7 +665,7 @@ static gboolean match_last_chars(ScintillaObject *sci, gint pos, const gchar *st gchar *buf;
g_return_val_if_fail(len < 100, FALSE); - g_return_val_if_fail(len <= pos, FALSE); + g_return_val_if_fail((gint)len <= pos, FALSE);
buf = g_alloca(len + 1); sci_get_text_range(sci, pos - len, pos, buf);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).