diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2018-01-01 17:11:44 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2018-01-01 17:11:44 +0000 |
commit | 4280dcf14be2504cc4dac30796e25979f4a2e4dc (patch) | |
tree | 8b4c9f7509820131ff59863a35752b6584fdfeaf /math/symmetrica/files/patch-part.c | |
parent | - Update to 20180101 (diff) |
New port: math/symmetrica: Collection of routines for combinatorial mathematics
Submitted by: myself
Approved by: tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D13711
Diffstat (limited to 'math/symmetrica/files/patch-part.c')
-rw-r--r-- | math/symmetrica/files/patch-part.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/math/symmetrica/files/patch-part.c b/math/symmetrica/files/patch-part.c new file mode 100644 index 000000000000..8615b51317b9 --- /dev/null +++ b/math/symmetrica/files/patch-part.c @@ -0,0 +1,13 @@ +--- part.c.orig 2017-12-31 07:40:55 UTC ++++ part.c +@@ -1767,8 +1767,8 @@ static int rec01(INT ni, OP vec) + /* to compute number of partitions */ + { + INT erg = OK; +- if (ni<0) return; +- if (not EMPTYP(S_V_I(vec,ni))) return; ++ if (ni<0) return 0; ++ if (not EMPTYP(S_V_I(vec,ni))) return 0; + else if (ni<=1) M_I_I(1,S_V_I(vec,ni)); + else { + |