Changeset 0619c0 in git


Ignore:
Timestamp:
Feb 23, 2011, 3:20:59 PM (13 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
9792cb7510b39a6287b05b3a822cc9432d9b270e
Parents:
115281e7de70454789a548b16283f80186a08578
Message:
bug-fix in bbcone.cc

git-svn-id: file:///usr/local/Singular/svn/trunk@13888 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/bbcone.cc

    r115281 r0619c0  
    492492  {
    493493    retCone = zc->linealitySpace();
    494     typeInfo = CONE_CMD;
     494    typeInfo = coneID;
    495495  }
    496496  else if (strcmp(prop, "DUAL_CONE") == 0)
    497497  {
    498498    retCone = zc->dualCone();
    499     typeInfo = CONE_CMD;
     499    typeInfo = coneID;
    500500  }
    501501  else if (strcmp(prop, "NEGATED") == 0)
    502502  {
    503503    retCone = zc->negated();
    504     typeInfo = CONE_CMD;
     504    typeInfo = coneID;
    505505  }
    506506  /* ################ properties with return type intvec: ################## */
     
    536536
    537537  res->rtyp = typeInfo;
    538   switch(typeInfo)
    539   {
    540     case INTMAT_CMD:
    541       res->data = (void*)zMatrix2Intvec(retMat);
    542       break;
    543     case INT_CMD:
    544       res->data = (void*)retInt;
    545       break;
    546     case CONE_CMD:
    547       res->data = (void*)new gfan::ZCone(retCone);
    548       break;
    549     case INTVEC_CMD:
    550       res->data = (void*)zVector2Intvec(retVec);
    551       break;
    552     default: ; /* should never be reached */
     538  if (typeInfo == INT_CMD)
     539    res->data = (void*)retInt;
     540  else if (typeInfo == INTMAT_CMD)
     541    res->data = (void*)zMatrix2Intvec(retMat);
     542  else if (typeInfo == coneID)
     543    res->data = (void*)new gfan::ZCone(retCone);
     544  else if (typeInfo == INTVEC_CMD)
     545    res->data = (void*)zVector2Intvec(retVec);
     546  else
     547  {
     548    WerrorS("implementation error in bbcone.cc::jjGETPROPC");
     549    return TRUE;
    553550  }
    554551  return FALSE;
Note: See TracChangeset for help on using the changeset viewer.