diff --git a/ChangeLog b/ChangeLog
index fac9c4017f0cee948af48930d9b37954cc1501d5..9fb556bd3ff385f010f747b85588cde04b5965a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -78,6 +78,8 @@ CVS code -
 	- Remove redundant key checks. (DLR)
   browser_refresh()
 	- Rename variable editline to line, for consistency. (DLR)
+	- Change variable i from an int to a size_t in order to match
+	  selected, which it's compared against. (DLR)
 - files.c:
   open_file()
 	- Remove redundant wording in the error message when we try to
diff --git a/src/browser.c b/src/browser.c
index a83c922edf34ccadc8e81765c6e354c4c9b9ba34..57968e220bf6d9a389a23580d02400f1229b0e23 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -543,7 +543,7 @@ void parse_browser_input(int *kbinput, bool *meta_key, bool *func_key)
 void browser_refresh(void)
 {
     struct stat st;
-    int i;
+    size_t i;
     int col = 0, line = 0, filecols = 0;
     size_t foo_len = mb_cur_max() * 7;
     char *foo = charalloc(foo_len + 1);