Sun, 01 May 2022 10:39:13 +0200
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 }