Mercurial > hg > dmlib
changeset 2248:2e656da1b10b
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 15 Jun 2019 20:20:47 +0300 |
parents | bb7255792dd6 |
children | 6ba4aed198e4 |
files | tools/64vw.c tools/fanalyze.c tools/gentab.c |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/64vw.c Sat Jun 15 20:19:21 2019 +0300 +++ b/tools/64vw.c Sat Jun 15 20:20:47 2019 +0300 @@ -452,7 +452,7 @@ case SDLK_SPACE: case SDLK_UP: case SDLK_RIGHT: - if (currIndex < noptFilenames2 - 1) + if (currIndex + 1 < noptFilenames2) currIndex++; else currIndex = noptFilenames2 - 1; @@ -466,7 +466,7 @@ break; case SDLK_PAGEUP: - if (currIndex < noptFilenames2 - 1 - SET_SKIP_AMOUNT) + if (currIndex + 1 + SET_SKIP_AMOUNT < noptFilenames2) currIndex += SET_SKIP_AMOUNT; else currIndex = noptFilenames2 - 1;
--- a/tools/fanalyze.c Sat Jun 15 20:19:21 2019 +0300 +++ b/tools/fanalyze.c Sat Jun 15 20:20:47 2019 +0300 @@ -212,7 +212,7 @@ for (int n = 0; n < node->nvalues; n++) { - const char *veol = (n < node->nvalues - 1) ? " " : "\n"; + const char *veol = (n + 1 < node->nvalues) ? " " : "\n"; if (match) {