fix regression: nitems adjusted at the wrong location

Sun, 01 May 2022 10:39:13 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 01 May 2022 10:39:13 +0200
changeset 540
47e0f2237a94
parent 539
9cd98da9ee17
child 541
67e078518935

fix regression: nitems adjusted at the wrong location

src/buffer.c file | annotate | diff | comparison | revisions
     1.1 --- a/src/buffer.c	Sat Apr 30 09:47:20 2022 +0200
     1.2 +++ b/src/buffer.c	Sun May 01 10:39:13 2022 +0200
     1.3 @@ -168,8 +168,8 @@
     1.4                  if (size > 1) {
     1.5                      // TODO: this is bugged - it would only discard one element and not as many as required
     1.6                      len -= len % size;
     1.7 -                    nitems = len / size;
     1.8                  }
     1.9 +                nitems = len / size;
    1.10              }
    1.11          }
    1.12      }

mercurial