Using the fact that since r1.53 prec is always non-negative and that
r1.50 added an initialization of use_unif, we can eliminate a couple
of lines and make the intention clearer.
ok martijn
-/* $OpenBSD: jot.c,v 1.53 2021/08/13 10:40:23 tb Exp $ */
+/* $OpenBSD: jot.c,v 1.54 2021/08/13 10:45:26 tb Exp $ */
/* $NetBSD: jot.c,v 1.3 1994/12/02 20:29:43 pk Exp $ */
/*-
}
x = ender - begin;
- if (prec == 0 && (fmod(ender, 1) != 0 || fmod(begin, 1) != 0))
- use_unif = 0;
- else {
+ if (prec > 0 || (fmod(ender, 1) == 0 && fmod(begin, 1) == 0)) {
double range;
while (prec-- > 0)