Commit 9a783fe2 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fix for condition

parent cf69a2b7
......@@ -909,7 +909,7 @@ sc_search(girara_session_t* session, girara_argument_t* argument,
/* the next result is on a different page */
g_object_set(G_OBJECT(page_widget), "search-current", -1, NULL);
for (int npage_id = 1; page_id < num_pages; ++npage_id) {
for (unsigned int npage_id = 1; npage_id < num_pages; ++npage_id) {
int ntmp = cur_page + diff * (page_id + npage_id);
zathura_page_t* npage = zathura_document_get_page(zathura->document, (ntmp + 2*num_pages) % num_pages);
GtkWidget* npage_page_widget = zathura_page_get_widget(zathura, npage);
......
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