Changeset 509339 in git


Ignore:
Timestamp:
Apr 3, 2009, 8:27:19 PM (14 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
69262fa0701b9d59e896f3f94f538bb7df85958d
Parents:
5cd07be4a9020449652234e084630e174f38fd2a
Message:
*motsak: zero input to bracket


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

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r5cd07b r509339  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.502 2009-03-11 16:14:31 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.503 2009-04-03 18:27:19 motsak Exp $ */
    55
    66/*
     
    26202620static BOOLEAN jjBRACKET(leftv res, leftv a, leftv b)
    26212621{
     2622  res->data=NULL;
     2623           
    26222624  if (rIsPluralRing(currRing))
    26232625  {
    2624     poly p = (poly)a->CopyD(POLY_CMD);
    2625     poly q = (poly)b->Data();
    2626     res->data = nc_p_Bracket_qq(p,q);
    2627   }
    2628   else res->data=NULL;
     2626    const poly q = (poly)b->Data();
     2627
     2628    if( q != NULL )
     2629    {
     2630      if( (poly)a->Data() != NULL )
     2631      {
     2632        poly p = (poly)a->CopyD(POLY_CMD); // p = copy!
     2633        res->data = nc_p_Bracket_qq(p,q); // p will be destroyed!
     2634      }
     2635    }
     2636  }
    26292637  return FALSE;
    26302638}
Note: See TracChangeset for help on using the changeset viewer.