Changeset 40c1af in git


Ignore:
Timestamp:
Jun 15, 2018, 12:01:00 PM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
88afd04aa3c98c9ddd1ce5a07ef514ee0e4e41e4
Parents:
5ab169c8d2dfdccc0cf89c1e00afc7b3c4212c54
Message:
fix: String(map)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/subexpr.cc

    r5ab169 r40c1af  
    903903          }
    904904
    905         case MODUL_CMD:
    906905        case IDEAL_CMD:
    907906        case MAP_CMD:
     907        case MODUL_CMD:
    908908        case SMATRIX_CMD:
    909909          s= iiStringMatrix((matrix)d,dim, currRing);
     
    911911          {
    912912            char* ns = (char*) omAlloc(strlen(s) + 10);
    913             sprintf(ns, "%s(%s)", (t/*Typ()*/!=IDEAL_CMD ? "module" : "ideal"), s);
     913            if ((t/*Typ()*/==IDEAL_CMD)||(t==MAP_CMD))
     914              sprintf(ns, "ideal(%s)", s);
     915            else /*MODUL_CMD, SMATRIX_CMD */
     916              sprintf(ns, "module(%s)", s);
    914917            omFree(s);
    915918            omCheckAddr(ns);
Note: See TracChangeset for help on using the changeset viewer.