From: David Lawrence Ramsey Date: Thu, 23 Mar 2006 23:17:27 +0000 (+0000) Subject: in do_browser(), make old_selected a size_t too, to match selected X-Git-Tag: v1.3.11~14 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=231158d61aa47f66c16c6b35d80253fe67397a79;p=nano.git in do_browser(), make old_selected a size_t too, to match selected git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3315 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index a71d9eec..93896a54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -33,9 +33,9 @@ CVS code - the file list display after returning from the help browser at the "Go To Directory" prompt. (DLR) - Rename variable j to i, for consistency. (DLR) - - Make fileline and the static selected size_t's, since the - latter can hold the value of the former, and the former can be - that large. (DLR) + - Make fileline, old_selected, and the static selected size_t's, + since the first and second can hold the value of the third, + and the first can be that large. (DLR) - chars.c: mbstrchr() - Make parameter c const. (DLR) diff --git a/src/browser.c b/src/browser.c index 943f43f1..00c530b1 100644 --- a/src/browser.c +++ b/src/browser.c @@ -114,7 +114,7 @@ char *do_browser(char *path, DIR *dir) /* If we clicked in the edit window, we probably clicked * on a file. */ if (wenclose(edit, mevent.y, mevent.x)) { - int old_selected = selected; + size_t old_selected = selected; /* Subtract out the size of topwin. */ mevent.y -= 2 - no_more_space();