summaryrefslogtreecommitdiffstats
path: root/src/misc/extra
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-09-06 16:37:02 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-09-06 16:37:02 -0700
commit34fa6addc99048b27d3d9cd4dde715933b97fde1 (patch)
treebc6860522be4bc8389255125ad17301ee5761263 /src/misc/extra
parent45a948ab21ddb762cb4b957851f1e6d6e2b4022b (diff)
downloadabc-34fa6addc99048b27d3d9cd4dde715933b97fde1.tar.gz
abc-34fa6addc99048b27d3d9cd4dde715933b97fde1.tar.bz2
abc-34fa6addc99048b27d3d9cd4dde715933b97fde1.zip
More tuning in &nf.
Diffstat (limited to 'src/misc/extra')
-rw-r--r--src/misc/extra/extraUtilMisc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/misc/extra/extraUtilMisc.c b/src/misc/extra/extraUtilMisc.c
index b4ba7940..1b14e07f 100644
--- a/src/misc/extra/extraUtilMisc.c
+++ b/src/misc/extra/extraUtilMisc.c
@@ -2208,7 +2208,12 @@ int * Extra_PermSchedule( int n )
int nGroups = nFact / n / 2;
int * pRes = ABC_ALLOC( int, nFact );
int * pRes0, i, k, b = 0;
- assert( n > 1 );
+ assert( n > 0 );
+ if ( n == 1 )
+ {
+ pRes[0] = 0;
+ return pRes;
+ }
if ( n == 2 )
{
pRes[0] = pRes[1] = 0;