Changeset 703ad1 in git


Ignore:
Timestamp:
Jun 7, 1999, 5:46:05 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
00b574855c4c3b834269f6a81fed2006d7408463
Parents:
d84e0ad8a53e2f96a962252957ddf9d3d579459b
Message:
* fixed syz1.cc:syConvList and iparitc.cc:jjL2R so that error in
  liFindRes is passed up to interpreter, i.e., that
ring r;
list l=r,37,l;
 resolution(l);

does not result in Segmentation fault


git-svn-id: file:///usr/local/Singular/svn/trunk@3094 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    rd84e0a r703ad1  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.149 1999-06-04 13:07:30 pohl Exp $ */
     4/* $Id: iparith.cc,v 1.150 1999-06-07 15:46:05 obachman Exp $ */
    55
    66/*
     
    26982698{
    26992699  res->data=(char *)syConvList((lists)v->Data());
    2700   return FALSE;
     2700  if (res->data != NULL)
     2701    return FALSE;
     2702  else
     2703    return TRUE;
    27012704}
    27022705static BOOLEAN jjLEADCOEF(leftv res, leftv v)
  • Singular/syz1.cc

    rd84e0a r703ad1  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: syz1.cc,v 1.36 1998-11-21 13:55:43 siebert Exp $ */
     4/* $Id: syz1.cc,v 1.37 1999-06-07 15:46:02 obachman Exp $ */
    55/*
    66* ABSTRACT: resolutions
     
    24402440
    24412441  resolvente fr = liFindRes(li,&(result->length),&typ0,&(result->weights));
    2442   result->fullres = (resolvente)Alloc0((result->length+1)*sizeof(ideal));
    2443   for (int i=result->length-1;i>=0;i--)
    2444   {
    2445     if (fr[i]!=NULL)
    2446       result->fullres[i] = idCopy(fr[i]);
    2447   }
    2448   result->list_length=result->length;
    2449   Free((ADDRESS)fr,(result->length)*sizeof(ideal));
     2442  if (fr != NULL)
     2443  {
     2444   
     2445    result->fullres = (resolvente)Alloc0((result->length+1)*sizeof(ideal));
     2446    for (int i=result->length-1;i>=0;i--)
     2447    {
     2448      if (fr[i]!=NULL)
     2449        result->fullres[i] = idCopy(fr[i]);
     2450    }
     2451    result->list_length=result->length;
     2452    Free((ADDRESS)fr,(result->length)*sizeof(ideal));
     2453  }
     2454  else
     2455  {
     2456    Free (result, sizeof(ssyStrategy));
     2457    result = NULL;
     2458  }
    24502459  if (toDel) li->Clean();
    24512460  return result;
Note: See TracChangeset for help on using the changeset viewer.