Changeset ae4fd2a in git


Ignore:
Timestamp:
Feb 24, 2014, 2:45:27 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'd1ba061a762c62d3a25159d8da8b6e17332291fa')
Children:
848bd56f0e6524e64455d4225b26ebedfcdccd83
Parents:
0a6bb08c6f0682a52c5e101d9181d755a4c063c9
Message:
fix: ring list with no variables -> error
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r0a6bb0 rae4fd2a  
    21982198    lists v=(lists)L->m[1].Data();
    21992199    R->N = v->nr+1;
     2200    if (R->N<=0)
     2201    {
     2202      WerrorS("no ring variables");
     2203      goto rCompose_err;
     2204    }
    22002205    R->names   = (char **)omAlloc0(R->N * sizeof(char_ptr));
    22012206    int i;
  • kernel/kutil.cc

    r0a6bb0 rae4fd2a  
    725725  }
    726726
    727   if (i >= 0 && T->pLength != 0
    728   && ! rIsSyzIndexRing(currRing) && T->pLength != pLength(p))
     727  if ((i >= 0) && (T->pLength != 0)
     728  && (! rIsSyzIndexRing(currRing)) && (T->pLength != pLength(p)))
    729729  {
    730730    int l=T->pLength;
     
    55105510  {
    55115511    L->length = 0;
     5512    L->pLength = 0;
    55125513  }
    55135514
Note: See TracChangeset for help on using the changeset viewer.