[geany/geany] 6e9026: Improve some test ordering

Colomban Wendling git-noreply at xxxxx
Tue Jul 16 17:13:41 UTC 2013


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 16 Jul 2013 17:13:41 UTC
Commit:      6e902613b38372486b831be121af7579f377a7c5
             https://github.com/geany/geany/commit/6e902613b38372486b831be121af7579f377a7c5

Log Message:
-----------
Improve some test ordering

Spotted by Daniel Marjamäki, thanks.


Modified Paths:
--------------
    src/symbols.c

Modified: src/symbols.c
8 files changed, 4 insertions(+), 4 deletions(-)
===================================================================
@@ -2059,12 +2059,12 @@ static gchar *parse_function_at_line(ScintillaObject *sci, gint tag_line)
 	}
 	start = sci_get_position_from_line(sci, tag_line - 2);
 	max_pos = sci_get_position_from_line(sci, tag_line + 1);
-	while (sci_get_style_at(sci, start) != fn_style
-		&& start < max_pos) start++;
+	while (start < max_pos && sci_get_style_at(sci, start) != fn_style)
+		start++;
 
 	end = start;
-	while (sci_get_style_at(sci, end) == fn_style
-		&& end < max_pos) end++;
+	while (end < max_pos && sci_get_style_at(sci, end) == fn_style)
+		end++;
 
 	if (start == end)
 		return NULL;



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list