Changeset 7b9b0a2 in git


Ignore:
Timestamp:
Feb 2, 2010, 10:00:29 AM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f319f56b825b534ab7d932c0e0836e2b2c4a4a53
Parents:
eae4aa570178ab3f8608980b3baa77c859c0b30b
Message:
error message and memory clean for minor

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

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    reae4aa r7b9b0a2  
    59915991  leftv u=v->next;
    59925992  v->next=NULL;
    5993   if (v->Typ()==MATRIX_CMD)
     5993  int v_typ=v->Typ();
     5994  if (v_typ==MATRIX_CMD)
    59945995  {
    59955996     m = (const matrix)v->Data();
     
    59975998  else
    59985999  {
     6000    if (v_typ==0)
     6001    {
     6002      Werror("`%s` is undefined",v->Fullname());
     6003      return TRUE;
     6004    }
    59996005    // try to convert to MATRIX:
    6000     int ii=iiTestConvert(v->Typ(),MATRIX_CMD);
     6006    int ii=iiTestConvert(v_typ,MATRIX_CMD);
    60016007    BOOLEAN bo;
    60026008    sleftv tmp;
    6003     if (ii>0) bo=iiConvert(v->Typ(),MATRIX_CMD,ii,v,&tmp);
     6009    if (ii>0) bo=iiConvert(v_typ,MATRIX_CMD,ii,v,&tmp);
    60046010    else bo=TRUE;
    60056011    if (bo)
    60066012    {
    6007       Werror("cannot convert %s to matrix",Tok2Cmdname(v->Typ()));
     6013      Werror("cannot convert %s to matrix",Tok2Cmdname(v_typ));
    60086014      return TRUE;
    60096015    }
     
    61276133  else
    61286134    res->data = getMinorIdeal(m, mk, (noK ? 0 : k), algorithm, (noIdeal ? 0 : IasSB), false);
     6135  if (v_typ!=MATRIX_CMD) idDelete((ideal *)&m);
    61296136  res->rtyp = IDEAL_CMD;
    61306137  return FALSE;
Note: See TracChangeset for help on using the changeset viewer.