Changeset 509339 in git
- Timestamp:
- Apr 3, 2009, 8:27:19 PM (14 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 69262fa0701b9d59e896f3f94f538bb7df85958d
- Parents:
- 5cd07be4a9020449652234e084630e174f38fd2a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r5cd07b r509339 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.50 2 2009-03-11 16:14:31 SingularExp $ */4 /* $Id: iparith.cc,v 1.503 2009-04-03 18:27:19 motsak Exp $ */ 5 5 6 6 /* … … 2620 2620 static BOOLEAN jjBRACKET(leftv res, leftv a, leftv b) 2621 2621 { 2622 res->data=NULL; 2623 2622 2624 if (rIsPluralRing(currRing)) 2623 2625 { 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 } 2629 2637 return FALSE; 2630 2638 }
Note: See TracChangeset
for help on using the changeset viewer.