diff options
Diffstat (limited to 'src/misc/extra/extraUtilMisc.c')
-rw-r--r-- | src/misc/extra/extraUtilMisc.c | 7 |
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; |