Visits is unsigned, so can't be less than 0.

This commit is contained in:
Michael Drake 2014-05-30 23:33:13 +01:00
parent 8ee941a7a5
commit dcf9eca7b3
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ bool ro_gui_url_suggest_callback(nsurl *url, const struct url_data *data)
/* Ignore unvisited URLs, and those that don't apply to HTML or Text. */ /* Ignore unvisited URLs, and those that don't apply to HTML or Text. */
if (data->visits <= 0 || (data->type != CONTENT_HTML && if (data->visits == 0 || (data->type != CONTENT_HTML &&
data->type != CONTENT_TEXTPLAIN)) data->type != CONTENT_TEXTPLAIN))
return true; return true;