X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/80be023065ced106a4078a36371c135a60d2bd6c..f9c435c0c2f58c87699e1ef693388bc4df180ba0:/mpreduce.c diff --git a/mpreduce.c b/mpreduce.c index 0f20ed8..52e86a1 100644 --- a/mpreduce.c +++ b/mpreduce.c @@ -101,7 +101,8 @@ int mpreduce_create(mpreduce *r, mp *p) case X0 | 0: st = Z; printf("+ %lu\n", i - 1); break; } } - if (st >= X) printf("+ %lu\n", i); + if (st >= X) printf("+ %lu\n", i - 1); + st = Z; #endif for (i = 0, mp_scan(&sc, p); i < d - 1 && mp_step(&sc); i++) {