summaryrefslogtreecommitdiffstats
path: root/arith.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-07-28 18:56:55 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-07-28 18:56:55 -0700
commitb9e5782453ab8f89ac15219b4d20301f7c19545a (patch)
treeccf1d991ed35364384c3b13ba0c03fd879aa443a /arith.c
parent49116fad12857d46afa7865be3331bdfa0944fa5 (diff)
downloadtxr-b9e5782453ab8f89ac15219b4d20301f7c19545a.tar.gz
txr-b9e5782453ab8f89ac15219b4d20301f7c19545a.tar.bz2
txr-b9e5782453ab8f89ac15219b4d20301f7c19545a.zip
* arith.c (rising_product): Fix wrong m == n case,
which breaks the n_perm_k function for k == 1. * txr.1: Fix typo: n-choose-k written in place of n-perm-k.
Diffstat (limited to 'arith.c')
-rw-r--r--arith.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arith.c b/arith.c
index 450ea641..c1f7026d 100644
--- a/arith.c
+++ b/arith.c
@@ -1983,7 +1983,7 @@ static val rising_product(val m, val n)
if (lt(n, one))
return one;
- if (ge(m, n))
+ if (gt(m, n))
return one;
if (lt(m, one))